From d827b30044dc75abb509814bb5e23e8490d31804 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 5 May 2017 08:39:16 +0200 Subject: Trigger a foldersync when selecting the account. Account selection -> folders folder selection -> mails --- framework/qml/InlineAccountSwitcher.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 FocusScope { id: root - property string currentAccount: null + property string currentAccount + onCurrentAccountChanged: { + if (!!currentAccount) { + Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": currentAccount}); + } + + } ColumnLayout { anchors.fill: parent -- cgit v1.2.3