diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-20 09:33:42 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-20 09:58:00 +0100 |
commit | c3ba13d4240005cb9e7bdaca5977114e74bd0e9a (patch) | |
tree | 1ee5d114c6ac0c9680106059b48c22b3d65e99ff /components/mail | |
parent | 4b501d7c7bb37423a3963b85a74e804e22368095 (diff) | |
download | kube-c3ba13d4240005cb9e7bdaca5977114e74bd0e9a.tar.gz kube-c3ba13d4240005cb9e7bdaca5977114e74bd0e9a.zip |
Support synchronizing individual accounts
Diffstat (limited to 'components/mail')
-rw-r--r-- | components/mail/contents/ui/Mail.qml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/components/mail/contents/ui/Mail.qml b/components/mail/contents/ui/Mail.qml index 3cc0d4f4..acb75554 100644 --- a/components/mail/contents/ui/Mail.qml +++ b/components/mail/contents/ui/Mail.qml | |||
@@ -237,6 +237,23 @@ Controls2.ApplicationWindow { | |||
237 | Item { | 237 | Item { |
238 | id: accountName | 238 | id: accountName |
239 | 239 | ||
240 | KubeFramework.FolderController { | ||
241 | id: accountNameFolderController | ||
242 | accountId: accountSwitcher.accountId | ||
243 | } | ||
244 | |||
245 | Menu { | ||
246 | id: contextMenu | ||
247 | title: "Edit" | ||
248 | |||
249 | MenuItem { | ||
250 | text: "Synchronize" | ||
251 | onTriggered: { | ||
252 | accountNameFolderController.synchronizeAction.execute() | ||
253 | } | ||
254 | } | ||
255 | } | ||
256 | |||
240 | anchors { | 257 | anchors { |
241 | top: newMailButton.bottom | 258 | top: newMailButton.bottom |
242 | topMargin: Kirigami.Units.smallSpacing | 259 | topMargin: Kirigami.Units.smallSpacing |
@@ -245,6 +262,14 @@ Controls2.ApplicationWindow { | |||
245 | width: parent.width | 262 | width: parent.width |
246 | height: Kirigami.Units.gridUnit * 2 | 263 | height: Kirigami.Units.gridUnit * 2 |
247 | 264 | ||
265 | MouseArea { | ||
266 | anchors.fill: parent | ||
267 | acceptedButtons: Qt.RightButton | ||
268 | onClicked: { | ||
269 | contextMenu.popup() | ||
270 | } | ||
271 | } | ||
272 | |||
248 | Text { | 273 | Text { |
249 | anchors { | 274 | anchors { |
250 | bottom: parent.bottom | 275 | bottom: parent.bottom |