summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-03-02 12:00:54 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-03-02 12:03:04 +0100
commit03e8aabf1754f5061f207d2c9c082ba6199db0e5 (patch)
tree66124163b4da541dfb17c30299b9aeb82f9fad79 /components
parent795d551639340d81641aa8c6eabff1776e0b2ee1 (diff)
downloadkube-03e8aabf1754f5061f207d2c9c082ba6199db0e5.tar.gz
kube-03e8aabf1754f5061f207d2c9c082ba6199db0e5.zip
Visualize that a folder has new mails.
We listen for new mail notifications, and highlight the folder accordingly.
Diffstat (limited to 'components')
-rw-r--r--components/kube/qml/Kube.qml9
1 files changed, 8 insertions, 1 deletions
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 {
100 Shortcut { 100 Shortcut {
101 id: syncShortcut 101 id: syncShortcut
102 sequence: StandardKey.Refresh 102 sequence: StandardKey.Refresh
103 onActivated: !!app.currentFolder ? Kube.Fabric.postMessage(Kube.Messages.synchronize, {"folder": app.currentFolder}) : Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": app.currentAccount}) 103 onActivated: {
104 if (!!app.currentFolder) {
105 Kube.Fabric.postMessage(Kube.Messages.synchronize, {"folder": app.currentFolder});
106 Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": app.currentAccount, "type": "folder"})
107 } else {
108 Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": app.currentAccount})
109 }
110 }
104 } 111 }
105 //END Shortcuts 112 //END Shortcuts
106 113