From d6f48946d5700d711ca606d472d2a51c4ca057de Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 26 Jul 2025 14:23:12 +1000 Subject: popouts: fix scan icon rotation --- modules/bar/popouts/Network.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/bar/popouts/Network.qml b/modules/bar/popouts/Network.qml index ae0f45a..5a2d472 100644 --- a/modules/bar/popouts/Network.qml +++ b/modules/bar/popouts/Network.qml @@ -172,12 +172,13 @@ ColumnLayout { spacing: Appearance.spacing.small MaterialIcon { + id: scanIcon + animate: true text: Network.scanning ? "refresh" : "wifi_find" color: Network.scanning ? Colours.palette.m3onSurface : Colours.palette.m3onPrimaryContainer RotationAnimation on rotation { - alwaysRunToEnd: true running: Network.scanning loops: Animation.Infinite from: 0 @@ -202,6 +203,11 @@ ColumnLayout { root.connectingToSsid = ""; } } + + function onScanningChanged(): void { + if (!Network.scanning) + scanIcon.rotation = 0; + } } component Toggle: RowLayout { -- cgit v1.2.3-freya