diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-21 10:46:08 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-21 10:46:08 +0200 |
commit | 0b973d5af8a33e9542c8364dfb3ae59ace64821b (patch) | |
tree | eb1f39147b53ad2de79a36ef8e85eccfab12f4bc | |
parent | dc96f518d20f1438f6b5e1023bf3bb17d3cf7998 (diff) | |
download | kube-0b973d5af8a33e9542c8364dfb3ae59ace64821b.tar.gz kube-0b973d5af8a33e9542c8364dfb3ae59ace64821b.zip |
Use the refresh signal
-rw-r--r-- | views/composer/qml/View.qml | 3 | ||||
-rw-r--r-- | views/people/qml/View.qml | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/views/composer/qml/View.qml b/views/composer/qml/View.qml index 9e390156..35775d9e 100644 --- a/views/composer/qml/View.qml +++ b/views/composer/qml/View.qml | |||
@@ -52,6 +52,9 @@ Kube.View { | |||
52 | 52 | ||
53 | onSetup: { | 53 | onSetup: { |
54 | loadMessage(root.message, root.loadType) | 54 | loadMessage(root.message, root.loadType) |
55 | } | ||
56 | |||
57 | onRefresh: { | ||
55 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "mail", "specialPurpose": "drafts"}) | 58 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "mail", "specialPurpose": "drafts"}) |
56 | //For autocompletion | 59 | //For autocompletion |
57 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}) | 60 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}) |
diff --git a/views/people/qml/View.qml b/views/people/qml/View.qml index 800c4925..1da7ab5a 100644 --- a/views/people/qml/View.qml +++ b/views/people/qml/View.qml | |||
@@ -22,9 +22,9 @@ import QtQuick 2.7 | |||
22 | import QtQuick.Controls 2.1 | 22 | import QtQuick.Controls 2.1 |
23 | import org.kube.framework 1.0 as Kube | 23 | import org.kube.framework 1.0 as Kube |
24 | 24 | ||
25 | Item { | 25 | Kube.View { |
26 | 26 | ||
27 | StackView.onActivated: { | 27 | onRefresh: { |
28 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}) | 28 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}) |
29 | } | 29 | } |
30 | 30 | ||