summaryrefslogtreecommitdiffstats
path: root/components/mail
diff options
context:
space:
mode:
Diffstat (limited to 'components/mail')
-rw-r--r--components/mail/contents/ui/Mail.qml25
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