diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-05 08:39:16 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-07 14:11:44 +0200 |
commit | d827b30044dc75abb509814bb5e23e8490d31804 (patch) | |
tree | 31047c0e6fdbf0d54e28eb859f526bbf645c0757 | |
parent | fea6e5d0c5050c50e5dbae55a35890e6f5133750 (diff) | |
download | kube-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.qml | 8 |
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 | ||
23 | FocusScope { | 23 | FocusScope { |
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 |