popouts: fix scan icon rotation
This commit is contained in:
parent
6065045bdf
commit
d6f48946d5
1 changed files with 7 additions and 1 deletions
|
|
@ -172,12 +172,13 @@ ColumnLayout {
|
||||||
spacing: Appearance.spacing.small
|
spacing: Appearance.spacing.small
|
||||||
|
|
||||||
MaterialIcon {
|
MaterialIcon {
|
||||||
|
id: scanIcon
|
||||||
|
|
||||||
animate: true
|
animate: true
|
||||||
text: Network.scanning ? "refresh" : "wifi_find"
|
text: Network.scanning ? "refresh" : "wifi_find"
|
||||||
color: Network.scanning ? Colours.palette.m3onSurface : Colours.palette.m3onPrimaryContainer
|
color: Network.scanning ? Colours.palette.m3onSurface : Colours.palette.m3onPrimaryContainer
|
||||||
|
|
||||||
RotationAnimation on rotation {
|
RotationAnimation on rotation {
|
||||||
alwaysRunToEnd: true
|
|
||||||
running: Network.scanning
|
running: Network.scanning
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
from: 0
|
from: 0
|
||||||
|
|
@ -202,6 +203,11 @@ ColumnLayout {
|
||||||
root.connectingToSsid = "";
|
root.connectingToSsid = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onScanningChanged(): void {
|
||||||
|
if (!Network.scanning)
|
||||||
|
scanIcon.rotation = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
component Toggle: RowLayout {
|
component Toggle: RowLayout {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue