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

Maximiliano Curia maxy at moszumanska.debian.org
Fri Oct 14 14:29:48 UTC 2016


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

The following commit has been merged in the master branch:
commit 9a370da97bc7a3e6227967753dc38089c8b1734d
Author: Aleix Pol <aleixpol at kde.org>
Date:   Sun Jun 12 22:26:23 2016 +0200

    Use async dbus calls for checking plugin availability
---
 plasmoid/declarativeplugin/qml/PluginChecker.qml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/plasmoid/declarativeplugin/qml/PluginChecker.qml b/plasmoid/declarativeplugin/qml/PluginChecker.qml
index adfc727..8cb3683 100644
--- a/plasmoid/declarativeplugin/qml/PluginChecker.qml
+++ b/plasmoid/declarativeplugin/qml/PluginChecker.qml
@@ -38,8 +38,14 @@ QtObject {
 
     Component.onCompleted: pluginsChanged()
 
+    readonly property var v: DBusAsyncResponse {
+        id: response
+        autoDelete: false
+        onSuccess: { root.available = result; }
+        onError: { root.available = false }
+    }
+
     function pluginsChanged() {
-        var result = DBusResponseWaiter.waitForReply(device.hasPlugin("kdeconnect_" + pluginName))
-        available = (result && result != "error");
+        response.setPendingCall(device.hasPlugin("kdeconnect_" + pluginName))
     }
 }

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list