From 52f266ecbd34ce298a4bce93992ffbb631ae90f8 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sat, 9 Sep 2017 15:36:50 +0200 Subject: Centralized synchronization calls --- framework/qml/FolderListView.qml | 1 - framework/qml/InlineAccountSwitcher.qml | 5 +---- framework/qml/Messages.qml | 1 + 3 files changed, 2 insertions(+), 5 deletions(-) (limited to 'framework') diff --git a/framework/qml/FolderListView.qml b/framework/qml/FolderListView.qml index ece6f280..25c6cbe5 100644 --- a/framework/qml/FolderListView.qml +++ b/framework/qml/FolderListView.qml @@ -42,7 +42,6 @@ Kube.TreeView { model.fetchMore(index); Kube.Fabric.postMessage(Kube.Messages.folderSelection, {"folder": model.data(index, Kube.FolderListModel.DomainObject), "trash": model.data(index, Kube.FolderListModel.Trash)}); - Kube.Fabric.postMessage(Kube.Messages.synchronize, {"folder": model.data(index, Kube.FolderListModel.DomainObject)}); } diff --git a/framework/qml/InlineAccountSwitcher.qml b/framework/qml/InlineAccountSwitcher.qml index 511c38db..354150a5 100644 --- a/framework/qml/InlineAccountSwitcher.qml +++ b/framework/qml/InlineAccountSwitcher.qml @@ -24,10 +24,7 @@ FocusScope { id: root property string currentAccount onCurrentAccountChanged: { - if (!!currentAccount) { - Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": currentAccount}); - } - + Kube.Fabric.postMessage(Kube.Messages.accountSelection, {"account": currentAccount}); } ColumnLayout { diff --git a/framework/qml/Messages.qml b/framework/qml/Messages.qml index 485f7816..1d2ca002 100644 --- a/framework/qml/Messages.qml +++ b/framework/qml/Messages.qml @@ -24,6 +24,7 @@ Item { //Selections property string folderSelection: "currentFolder" property string mailSelection: "currentMail" + property string accountSelection: "currentAccount" //Actions property string moveToTrash: "moveToTrash" -- cgit v1.2.3