[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kde-workspace] plasma/generic/applets/devicenotifier/package/contents/ui: set the status
From: Aaron Seigo <aseigo () kde ! org>
Date: 2012-06-21 13:07:26
Message-ID: 20120621130726.4DD21A60A9 () git ! kde ! org
[Download RAW message or body]
Git commit c6c2e36e7d7481da97553bbcfd716142505c0f74 by Aaron Seigo.
Committed on 21/06/2012 at 15:06.
Pushed by aseigo into branch 'master'.
set the status to passive when there is no device on startup
BUG: 302100
FIXED-IN: 4.9
M +5 -1 plasma/generic/applets/devicenotifier/package/contents/ui/devicenotifier.qml
http://commits.kde.org/kde-workspace/c6c2e36e7d7481da97553bbcfd716142505c0f74
diff --git a/plasma/generic/applets/devicenotifier/package/contents/ui/devicenotifier.qml \
b/plasma/generic/applets/devicenotifier/package/contents/ui/devicenotifier.qml index \
d64034e..aaefc5c 100644
--- a/plasma/generic/applets/devicenotifier/package/contents/ui/devicenotifier.qml
+++ b/plasma/generic/applets/devicenotifier/package/contents/ui/devicenotifier.qml
@@ -90,7 +90,7 @@ Item {
connectSource(source);
}
onDataChanged: {
- if (last!="") {
+ if (last != "") {
statusBar.setData(data[last]["error"], data[last]["errorDetails"], \
data[last]["udi"]); plasmoid.status = "NeedsAttentionStatus";
plasmoid.showPopup(2500)
@@ -102,6 +102,10 @@ Item {
plasmoid.addEventListener ('ConfigChanged', configChanged);
plasmoid.popupEvent.connect(popupEventSlot);
plasmoid.aspectRatioMode = IgnoreAspectRatio;
+
+ if (notifierDialog.count == 0) {
+ plasmoid.status = "PassiveStatus"
+ }
}
function configChanged() {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic