From 03e8aabf1754f5061f207d2c9c082ba6199db0e5 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 2 Mar 2018 12:00:54 +0100 Subject: Visualize that a folder has new mails. We listen for new mail notifications, and highlight the folder accordingly. --- components/kube/qml/Kube.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'components') diff --git a/components/kube/qml/Kube.qml b/components/kube/qml/Kube.qml index 3a970733..eba70c70 100644 --- a/components/kube/qml/Kube.qml +++ b/components/kube/qml/Kube.qml @@ -100,7 +100,14 @@ Controls2.ApplicationWindow { Shortcut { id: syncShortcut sequence: StandardKey.Refresh - onActivated: !!app.currentFolder ? Kube.Fabric.postMessage(Kube.Messages.synchronize, {"folder": app.currentFolder}) : Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": app.currentAccount}) + onActivated: { + if (!!app.currentFolder) { + Kube.Fabric.postMessage(Kube.Messages.synchronize, {"folder": app.currentFolder}); + Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": app.currentAccount, "type": "folder"}) + } else { + Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": app.currentAccount}) + } + } } //END Shortcuts -- cgit v1.2.3