Commit 4c8b47dd authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

userswitcher: log out on the "Leave" option, now called "Log Out"

Instead of shutting down, which doesn't make much sense in the context.

BUG: 458891
parent 69cf3c93
......@@ -126,6 +126,9 @@ Item {
service.startOperationCall(operation)
}
}
Sessions.SessionManagement {
id: sm
}
Sessions.SessionsModel {
id: sessionsModel
......@@ -230,12 +233,13 @@ Item {
ActionListDelegate {
id: leaveButton
text: i18nc("Show a dialog with options to logout/shutdown/restart", "Leave…")
icon.name: "system-shutdown"
text: i18nc("Show a dialog with options to logout/shutdown/restart", "Log Out")
icon.name: "system-log-out"
visible: sm.canLogout
KeyNavigation.up: lockScreenButton
onClicked: pmEngine.performOperation("requestShutDown")
onClicked: sm.requestLogout()
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment