summaryrefslogtreecommitdiffstats
path: root/components/mail/contents/ui/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/mail/contents/ui/main.qml')
-rw-r--r--components/mail/contents/ui/main.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml
index 83bd85b2..414e3f5d 100644
--- a/components/mail/contents/ui/main.qml
+++ b/components/mail/contents/ui/main.qml
@@ -52,6 +52,12 @@ ApplicationWindow {
52 mail: mailListView.currentMail 52 mail: mailListView.currentMail
53 } 53 }
54 54
55 KubeAction.Context {
56 id: folderListContext
57 property variant folder
58 folder: folderListView.currentFolder
59 }
60
55 KubeAction.Action { 61 KubeAction.Action {
56 id: markAsReadAction 62 id: markAsReadAction
57 actionId: "org.kde.kube.actions.mark-as-read" 63 actionId: "org.kde.kube.actions.mark-as-read"
@@ -64,6 +70,12 @@ ApplicationWindow {
64 context: maillistcontext 70 context: maillistcontext
65 } 71 }
66 72
73 KubeAction.Action {
74 id: syncAction
75 actionId: "org.kde.kube.actions.synchronize"
76 context: folderListContext
77 }
78
67 //UI 79 //UI
68 toolBar: ToolBar { 80 toolBar: ToolBar {
69 81
@@ -140,6 +152,15 @@ ApplicationWindow {
140 } 152 }
141 } 153 }
142 154
155 PlasmaComponents.ToolButton {
156 height: parent.height
157 iconName: "view-refresh"
158 text: "Sync"
159 enabled: syncAction.ready
160 onClicked: {
161 syncAction.execute()
162 }
163 }
143 164
144 } 165 }
145 Rectangle { 166 Rectangle {