Merge "save some CPU cycle when busy indicator is not visible."
This commit is contained in:
commit
6d7ce28992
@ -24,6 +24,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore
|
|||||||
|
|
||||||
BusyIndicatorStyle {
|
BusyIndicatorStyle {
|
||||||
indicator: PlasmaCore.SvgItem {
|
indicator: PlasmaCore.SvgItem {
|
||||||
|
id: indicatorItem
|
||||||
svg: PlasmaCore.Svg { imagePath: "widgets/busywidget" }
|
svg: PlasmaCore.Svg { imagePath: "widgets/busywidget" }
|
||||||
elementId: "busywidget"
|
elementId: "busywidget"
|
||||||
|
|
||||||
@ -45,7 +46,7 @@ BusyIndicatorStyle {
|
|||||||
from: 0
|
from: 0
|
||||||
to: 360
|
to: 360
|
||||||
duration: 1500
|
duration: 1500
|
||||||
running: control.running
|
running: control.running && indicatorItem.visible && indicatorItem.opacity > 0;
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user