Commit 8791378d authored by Martin Höher's avatar Martin Höher

Pause animation when elements are invisible

When `BusyIndicator` elements and the custom spinner in the sync
notification bar are not visible, their animations are now stopped.
Otherwise the GUI is constantly redrawn, causing additional CPU
consumption.
parent a50a260b
Pipeline #21479270 passed with stages
in 13 minutes and 28 seconds
......@@ -101,6 +101,7 @@ Page {
BusyIndicator {
Layout.alignment: Qt.AlignHCenter
visible: dav.findingLibraries
running: visible
}
Repeater {
......
......@@ -135,6 +135,7 @@ Page {
BusyIndicator {
visible: dav.validating
running: visible
anchors.horizontalCenter: parent.horizontalCenter
}
}
......
......@@ -64,6 +64,7 @@ Pane {
to: 360
duration: 2000
loops: Animation.Infinite
running: syncIndicatorBar.state === "running"
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment