UserInfo: Move the switch user action to the menu

It doesn't clutter the main UI.
It allows us to see the keyboard shortcut.
This commit is contained in:
Aleix Pol
2025-06-16 00:56:23 +02:00
committed by Aleix Pol Gonzalez
parent 4bade72ce4
commit 91da2d01b7
2 changed files with 8 additions and 8 deletions

View File

@@ -36,6 +36,14 @@ KirigamiComponents.ConvergentContextMenu {
}
}
Kirigami.Action {
text: i18nc("@action:inmenu", "Switch Account")
icon.name: "system-switch-user"
shortcut: "Ctrl+U"
onTriggered: accountSwitchDialog.createObject(QQC2.Overlay.overlay, {
connection: root.connection
}).open();
}
QQC2.Action {
text: i18n("Edit This Account")
icon.name: "document-edit"

View File

@@ -104,14 +104,6 @@ RowLayout {
Layout.preferredWidth: maximumContentWidth
actions: [
Kirigami.Action {
text: i18n("Switch Account")
icon.name: "system-switch-user"
shortcut: "Ctrl+U"
onTriggered: accountSwitchDialog.createObject(QQC2.Overlay.overlay, {
connection: root.connection
}).open();
},
Kirigami.Action {
text: i18n("Open Settings")
icon.name: "settings-configure-symbolic"