diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-06-28 09:02:48 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-06-28 10:45:51 +0200 |
commit | bd62b0c97bf7aa9f4c864367a159ea479c256bc1 (patch) | |
tree | 7ea317f2dc4e45b2da0b83e12dcae6144bfc7fbf /framework/qml/MailListView.qml | |
parent | ef0756cdc8d94240da268b506f0e9f753abe7470 (diff) | |
download | kube-bd62b0c97bf7aa9f4c864367a159ea479c256bc1.tar.gz kube-bd62b0c97bf7aa9f4c864367a159ea479c256bc1.zip |
Fixed mark as important
Diffstat (limited to 'framework/qml/MailListView.qml')
-rw-r--r-- | framework/qml/MailListView.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index 46d3146a..d82571ec 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml | |||
@@ -295,9 +295,9 @@ FocusScope { | |||
295 | 295 | ||
296 | Kube.IconButton { | 296 | Kube.IconButton { |
297 | id: importantButton | 297 | id: importantButton |
298 | iconName: Kube.Icons.markImportant | 298 | iconName: model.important ? Kube.Icons.markImportant : Kube.Icons.markUnimportant |
299 | visible: !!model.mail | 299 | visible: !!model.mail |
300 | onClicked: Kube.Fabric.postMessage(Kube.Messages.toggleImportant, {"mail": model.mail, "important": model.important}) | 300 | onClicked: Kube.Fabric.postMessage(Kube.Messages.setImportant, {"mail": model.mail, "important": !model.important}) |
301 | activeFocusOnTab: false | 301 | activeFocusOnTab: false |
302 | } | 302 | } |
303 | 303 | ||