[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: Don't highlight
From:       Jacopo De Simoi <wilderkde () gmail ! com>
Date:       2012-12-11 11:46:23
Message-ID: 20121211114623.CE4FCA60C8 () git ! kde ! org
[Download RAW message or body]

Git commit 7c314bc498c000477334036787facb367c2ab1cb by Jacopo De Simoi.
Committed on 11/12/2012 at 12:42.
Pushed by jacopods into branch 'master'.

Don't highlight the first action upon plugging-in

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


http://commits.kde.org/kde-workspace/7c314bc498c000477334036787facb367c2ab1cb

diff --git a/plasma/generic/applets/devicenotifier/package/contents/ui/DeviceItem.qml \
b/plasma/generic/applets/devicenotifier/package/contents/ui/DeviceItem.qml index \
                8d47f08..3f8f6f2 100644
--- a/plasma/generic/applets/devicenotifier/package/contents/ui/DeviceItem.qml
+++ b/plasma/generic/applets/devicenotifier/package/contents/ui/DeviceItem.qml
@@ -270,6 +270,8 @@ Item {
             delegate: actionItem
             highlight: PlasmaComponents.Highlight{}
             Behavior on opacity { NumberAnimation { duration: 150 } }
+
+            Component.onCompleted: currentIndex = -1
         }
 
         Component {
@@ -286,6 +288,6 @@ Item {
     function makeCurrent()
     {
         notifierDialog.currentIndex = index;
-        notifierDialog.highlightItem.opacity=1;
+        notifierDialog.highlightItem.opacity = 1;
     }
 }


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

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