diff options
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 7 | ||||
-rw-r--r-- | framework/qml/People.qml | 6 |
2 files changed, 7 insertions, 6 deletions
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index c6fbffb9..095e51e1 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml | |||
@@ -201,6 +201,13 @@ Controls2.ApplicationWindow { | |||
201 | kubeViews.push(composerView, {message: mail, loadAsDraft: openAsDraft}, Controls2.StackView.Immediate) | 201 | kubeViews.push(composerView, {message: mail, loadAsDraft: openAsDraft}, Controls2.StackView.Immediate) |
202 | } | 202 | } |
203 | 203 | ||
204 | onCurrentItemChanged: { | ||
205 | //TODO with qt 5.8 use Controls2.StackView.onActivated | ||
206 | if (currentItem == peopleView) { | ||
207 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}) | ||
208 | } | ||
209 | } | ||
210 | |||
204 | //These items are not visible until pushed onto the stack, so we keep them in resources instead of items | 211 | //These items are not visible until pushed onto the stack, so we keep them in resources instead of items |
205 | resources: [ | 212 | resources: [ |
206 | //Not components so we maintain state | 213 | //Not components so we maintain state |
diff --git a/framework/qml/People.qml b/framework/qml/People.qml index 7f36193e..f4285f24 100644 --- a/framework/qml/People.qml +++ b/framework/qml/People.qml | |||
@@ -30,12 +30,6 @@ Item { | |||
30 | 30 | ||
31 | property var currentContact | 31 | property var currentContact |
32 | 32 | ||
33 | onVisibleChanged: { | ||
34 | if (visible) { | ||
35 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}); | ||
36 | } | ||
37 | } | ||
38 | |||
39 | Item { | 33 | Item { |
40 | id: peopleRoot | 34 | id: peopleRoot |
41 | 35 | ||