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

List:       kde-commits
Subject:    [kde-workspace/KDE/4.8] plasma/generic/applets/devicenotifier/package/contents/ui: Trigger status
From:       Jacopo De Simoi <wilderkde () gmail ! com>
Date:       2012-05-22 8:44:11
Message-ID: 20120522084411.96060A60A9 () git ! kde ! org
[Download RAW message or body]

Git commit 70564124cacf7840b4b9da932c68985324118977 by Jacopo De Simoi.
Committed on 19/05/2012 at 17:35.
Pushed by jacopods into branch 'KDE/4.8'.

Trigger status changes in a more robust way

Make sure that status changes are triggered in the
same codepath to avoid possible race issues

M  +2    -1    plasma/generic/applets/devicenotifier/package/contents/ui/devicenotifier.qml


http://commits.kde.org/kde-workspace/70564124cacf7840b4b9da932c68985324118977

diff --git a/plasma/generic/applets/devicenotifier/package/contents/ui/devicenotifier.qml \
b/plasma/generic/applets/devicenotifier/package/contents/ui/devicenotifier.qml index \
                6d9aec3..d64034e 100644
--- a/plasma/generic/applets/devicenotifier/package/contents/ui/devicenotifier.qml
+++ b/plasma/generic/applets/devicenotifier/package/contents/ui/devicenotifier.qml
@@ -127,7 +127,6 @@ Item {
             expandedDevice = udi
         }
         plasmoid.setPopupIconByName("preferences-desktop-notification")
-        plasmoid.status = "ActiveStatus"
         plasmoid.showPopup(7500)
         popupIconTimer.restart()
     }
@@ -186,6 +185,8 @@ Item {
         onCountChanged: {
             if (count == 0) {
                 plasmoid.status = "PassiveStatus"
+            } else {
+                plasmoid.status = "ActiveStatus"
             }
         }
         delegate: deviceItem


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

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