Add a logout action from the menubar

Fix #188
This commit is contained in:
Carl Schwan
2020-12-28 10:50:46 +01:00
parent c69d3587ba
commit f00cd82676

View File

@@ -180,6 +180,11 @@ Kirigami.ApplicationWindow {
onTriggered: pushReplaceLayer(aboutPage)
enabled: pageStack.layers.currentItem.title !== i18n("About")
},
Kirigami.Action {
text: i18n("Logout")
icon.name: "list-remove-user"
onTriggered: Controller.logout(Controller.activeConnection, true)
},
Kirigami.Action {
text: i18n("Quit")
icon.name: "gtk-quit"