From 425f2a4b85847157853915b29edf5e59a97fc4e8 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sun, 13 Nov 2022 19:11:50 +0100 Subject: [PATCH] Add action to open account editor from account switcher --- src/qml/Component/UserInfo.qml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/qml/Component/UserInfo.qml b/src/qml/Component/UserInfo.qml index ac8fef2a0..25b651f1b 100644 --- a/src/qml/Component/UserInfo.qml +++ b/src/qml/Component/UserInfo.qml @@ -136,6 +136,15 @@ QQC2.ToolBar { anchors.margins: Kirigami.Units.smallSpacing source: mediaId ? ("image://mxc/" + mediaId) : "" name: Controller.activeConnection.localUser.displayName ?? Controller.activeConnection.localUser.id + actions.main: Kirigami.Action { + text: i18n("Edit this account") + iconName: "document-edit" + onTriggered: pageStack.pushDialogLayer(Qt.resolvedUrl('./AccountEditorPage.qml'), { + connection: Controller.activeConnection + }, { + title: i18n("Account editor") + }); + } } } ColumnLayout {