diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index 498d987a..2897442d 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml | |||
@@ -130,6 +130,7 @@ Controls2.ApplicationWindow { | |||
130 | } | 130 | } |
131 | 131 | ||
132 | Kube.IconButton { | 132 | Kube.IconButton { |
133 | id: composerButton | ||
133 | iconName: Kube.Icons.edit_inverted | 134 | iconName: Kube.Icons.edit_inverted |
134 | onClicked: kubeViews.openComposer(false) | 135 | onClicked: kubeViews.openComposer(false) |
135 | activeFocusOnTab: true | 136 | activeFocusOnTab: true |
@@ -244,9 +245,11 @@ Controls2.ApplicationWindow { | |||
244 | } | 245 | } |
245 | 246 | ||
246 | function openComposer(newMessage) { | 247 | function openComposer(newMessage) { |
248 | composerButton.checked = true | ||
247 | kubeViews.push(composerView, {newMessage: newMessage}, Controls2.StackView.Immediate) | 249 | kubeViews.push(composerView, {newMessage: newMessage}, Controls2.StackView.Immediate) |
248 | } | 250 | } |
249 | function openComposerWithMail(mail, openAsDraft) { | 251 | function openComposerWithMail(mail, openAsDraft) { |
252 | composerButton.checked = true | ||
250 | kubeViews.push(composerView, {message: mail, loadAsDraft: openAsDraft}, Controls2.StackView.Immediate) | 253 | kubeViews.push(composerView, {message: mail, loadAsDraft: openAsDraft}, Controls2.StackView.Immediate) |
251 | } | 254 | } |
252 | 255 | ||