Change in plasma-framework[master]: save some CPU cycle when busy indicator is not visible.
Xuetian Weng (Code Review)
noreply at kde.org
Mon Dec 15 00:24:06 UTC 2014
Xuetian Weng has uploaded a new change for review.
https://gerrit.vesnicky.cesnet.cz/r/240
Change subject: save some CPU cycle when busy indicator is not visible.
......................................................................
save some CPU cycle when busy indicator is not visible.
Change-Id: Ia5c296cdbc6c0ccd2ca45444d4f3171723b50d23
---
M src/declarativeimports/plasmastyle/BusyIndicatorStyle.qml
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.vesnicky.cesnet.cz:29418/plasma-framework refs/changes/40/240/1
diff --git a/src/declarativeimports/plasmastyle/BusyIndicatorStyle.qml b/src/declarativeimports/plasmastyle/BusyIndicatorStyle.qml
index 49021de..44abe4b 100644
--- a/src/declarativeimports/plasmastyle/BusyIndicatorStyle.qml
+++ b/src/declarativeimports/plasmastyle/BusyIndicatorStyle.qml
@@ -24,6 +24,7 @@
BusyIndicatorStyle {
indicator: PlasmaCore.SvgItem {
+ id: indicatorItem
svg: PlasmaCore.Svg { imagePath: "widgets/busywidget" }
elementId: "busywidget"
@@ -45,7 +46,7 @@
from: 0
to: 360
duration: 1500
- running: control.running
+ running: control.running && indicatorItem.visible && indicatorItem.opacity > 0;
loops: Animation.Infinite
}
}
--
To view, visit https://gerrit.vesnicky.cesnet.cz/r/240
To unsubscribe, visit https://gerrit.vesnicky.cesnet.cz/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia5c296cdbc6c0ccd2ca45444d4f3171723b50d23
Gerrit-PatchSet: 1
Gerrit-Project: plasma-framework
Gerrit-Branch: master
Gerrit-Owner: Xuetian Weng <wengxt at gmail.com>
Gerrit-Reviewer: Kai Uwe Broulik <kde at privat.broulik.de>
More information about the Plasma-devel
mailing list