summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-05 08:39:16 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-07 14:11:44 +0200
commitd827b30044dc75abb509814bb5e23e8490d31804 (patch)
tree31047c0e6fdbf0d54e28eb859f526bbf645c0757
parentfea6e5d0c5050c50e5dbae55a35890e6f5133750 (diff)
downloadkube-d827b30044dc75abb509814bb5e23e8490d31804.tar.gz
kube-d827b30044dc75abb509814bb5e23e8490d31804.zip
Trigger a foldersync when selecting the account.
Account selection -> folders folder selection -> mails
-rw-r--r--framework/qml/InlineAccountSwitcher.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/framework/qml/InlineAccountSwitcher.qml b/framework/qml/InlineAccountSwitcher.qml
index 4131b971..65b13ece 100644
--- a/framework/qml/InlineAccountSwitcher.qml
+++ b/framework/qml/InlineAccountSwitcher.qml
@@ -22,7 +22,13 @@ import org.kube.framework 1.0 as Kube
22 22
23FocusScope { 23FocusScope {
24 id: root 24 id: root
25 property string currentAccount: null 25 property string currentAccount
26 onCurrentAccountChanged: {
27 if (!!currentAccount) {
28 Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": currentAccount});
29 }
30
31 }
26 32
27 ColumnLayout { 33 ColumnLayout {
28 anchors.fill: parent 34 anchors.fill: parent