From 369242ab31954b499fdc048ada0c4e9d9a678ec4 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sat, 14 Dec 2024 17:22:12 +0100 Subject: [PATCH] [UserInfo] Fix shortcut Set the keysequence on the action directly This makes it actually work (cherry picked from commit 7bef8c99ec13a398f24903bed60c579bdbe92470) --- src/qml/UserInfo.qml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/qml/UserInfo.qml b/src/qml/UserInfo.qml index f1b124e58..3fbe4f4e3 100644 --- a/src/qml/UserInfo.qml +++ b/src/qml/UserInfo.qml @@ -91,6 +91,7 @@ RowLayout { id: switchUserButton text: i18n("Switch User") icon.name: "system-switch-user" + shortcut: "Ctrl+U" onTriggered: accountSwitchDialog.createObject(QQC2.Overlay.overlay, { connection: root.connection }).open(); @@ -105,11 +106,6 @@ RowLayout { } } ] - - Shortcut { - sequence: "Ctrl+U" - onActivated: switchUserButton.toggle() - } } // QQC2.ToolButton { // Layout.alignment: Qt.AlignRight