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