From 91da2d01b796e3d00800553a3ab7bd31fa3565c1 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 16 Jun 2025 00:56:23 +0200 Subject: [PATCH] UserInfo: Move the switch user action to the menu It doesn't clutter the main UI. It allows us to see the keyboard shortcut. --- src/app/qml/AccountMenu.qml | 8 ++++++++ src/rooms/UserInfo.qml | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/qml/AccountMenu.qml b/src/app/qml/AccountMenu.qml index f865051f5..bedd1c0ed 100644 --- a/src/app/qml/AccountMenu.qml +++ b/src/app/qml/AccountMenu.qml @@ -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" diff --git a/src/rooms/UserInfo.qml b/src/rooms/UserInfo.qml index bc28c1b70..7bc5be493 100644 --- a/src/rooms/UserInfo.qml +++ b/src/rooms/UserInfo.qml @@ -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"