[SCM] ktp-contact-applet packaging branch, master, updated. debian/16.04.2-1-67-g066859a
Maximiliano Curia
maxy at moszumanska.debian.org
Tue Sep 12 14:08:31 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-desktop-applets.git;a=commitdiff;h=854f2b6
The following commit has been merged in the master branch:
commit 854f2b62fe6da3b5a47b1fd9e535379ff4021b97
Author: James D. Smith <smithjd15 at gmail.com>
Date: Thu Jan 5 14:34:19 2017 -0700
Respond to presence model changes.
Reviewed-by: David Edmundson
---
.../org.kde.ktp-contactlist/contents/ui/main.qml | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/contactlist/org.kde.ktp-contactlist/contents/ui/main.qml b/contactlist/org.kde.ktp-contactlist/contents/ui/main.qml
index 808b937..bd64b3c 100644
--- a/contactlist/org.kde.ktp-contactlist/contents/ui/main.qml
+++ b/contactlist/org.kde.ktp-contactlist/contents/ui/main.qml
@@ -41,6 +41,9 @@ Item
KTp.PresenceModel {
id: presenceModel
+ onCountChanged: {
+ buildMenu();
+ }
}
KTp.GlobalPresence {
@@ -81,11 +84,9 @@ Item
}
}
- Component.onCompleted: {
- telepathyManager.addContactListFeatures();
- telepathyManager.becomeReady();
-
- //TODO: The PresenceModel might change, this will never react to such changes
+ function buildMenu() {
+ // remove any already existing actions
+ plasmoid.clearActions();
for(var i=0; i<presenceModel.count; ++i) {
var disp = presenceModel.get(i, "display");
var actionName = i;
@@ -110,6 +111,13 @@ Item
plasmoid.setActionSeparator("actions");
}
+ Component.onCompleted: {
+ telepathyManager.addContactListFeatures();
+ telepathyManager.becomeReady();
+
+ buildMenu();
+ }
+
function action_dial() { telepathyManager.openDialUi(); }
function action_sendFile() { telepathyManager.openDialUi(); }
function action_addContact() { telepathyManager.addContact(); }
--
ktp-contact-applet packaging
More information about the pkg-kde-commits
mailing list