[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kde-workspace] plasma/generic/applets/batterymonitor/contents/ui: Workaround weird bug
From:       Sebastian_Kügler <sebas () kde ! org>
Date:       2014-01-29 1:06:25
Message-ID: E1W8Jbl-0003UA-1r () scm ! kde ! org
[Download RAW message or body]

Git commit 2c187970125750598d91018bbd9bd4641cc01d79 by Sebastian Kügler.
Committed on 29/01/2014 at 01:05.
Pushed by sebas into branch 'master'.

Workaround weird bug

...that prevents plasmoid.status updates from trickling through to the
systray.

This fixes the battery moving into the shown area of the systray.

M  +6    -0    plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml

http://commits.kde.org/kde-workspace/2c187970125750598d91018bbd9bd4641cc01d79

diff --git a/plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml \
b/plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml index \
                9c3032f..c34e291 100755
--- a/plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml
+++ b/plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml
@@ -47,6 +47,12 @@ Item {
     function updateLogic(updateBrightness) {
         Logic.updateCumulative();
         plasmoid.status = Logic.plasmoidStatus();
+
+        // this helps updating the status throughout the applet
+        // without this, the applet doesn't switch from passive
+        // to active. -- FIXME.
+        print(plasmoid.status);
+
         Logic.updateTooltip();
         if (updateBrightness) {
             Logic.updateBrightness(pmSource);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic