From f00cd82676ffa92afcf0b2858747855bd401f93a Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 28 Dec 2020 10:50:46 +0100 Subject: [PATCH] Add a logout action from the menubar Fix #188 --- qml/main.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qml/main.qml b/qml/main.qml index 6ad1123e4..b820b629b 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -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"