[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498

Maximiliano Curia maxy at moszumanska.debian.org
Fri Oct 14 14:27:32 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=0029c62

The following commit has been merged in the master branch:
commit 0029c62a2d23ea0993bf38b1efd43cb5b258cb8c
Author: Àlex Fiestas <afiestas at kde.org>
Date:   Sat Apr 12 21:52:25 2014 +0200

    Hide the plasmoid when no device is connected
    
    Reviewed by albertvaka at gmail.com
---
 plasmoid/package/contents/ui/kdeconnect.qml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/plasmoid/package/contents/ui/kdeconnect.qml b/plasmoid/package/contents/ui/kdeconnect.qml
index 889afad..a11c2ab 100644
--- a/plasmoid/package/contents/ui/kdeconnect.qml
+++ b/plasmoid/package/contents/ui/kdeconnect.qml
@@ -50,6 +50,15 @@ Item {
     }
     */
 
+    function showPlasmoidBeShown()
+    {
+        if (devicesView.count > 0) {
+            plasmoid.status = ActiveStatus;
+        } else {
+            plasmoid.status = PassiveStatus;
+        }
+    }
+
     PlasmaExtras.ScrollArea {
         id: dialogItem
         anchors.fill: parent
@@ -58,9 +67,12 @@ Item {
             id: devicesView
             anchors.fill: parent
             model: KdeConnect.DevicesModel {
+                id: connectDeviceModel
                 displayFilter: 0x11
             }
             delegate: DeviceDelegate { }
+            onCountChanged: showPlasmoidBeShown()
+            Component.onCompleted: showPlasmoidBeShown();
         }
     }
 

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list