From cff27ca7db58b55815438c15e5633ec4e19e562e Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 11 Feb 2026 19:36:23 -0500 Subject: [PATCH] Add user ID to the account editor page For some reason this was never featured here, and it's always useful to have another place to check and/or copy this ID. --- src/settings/AccountEditorPage.qml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/settings/AccountEditorPage.qml b/src/settings/AccountEditorPage.qml index fc1509c83..1c3e14823 100644 --- a/src/settings/AccountEditorPage.qml +++ b/src/settings/AccountEditorPage.qml @@ -119,6 +119,26 @@ FormCard.FormCardPage { text: root.connection ? root.connection.label : "" } FormCard.FormDelegateSeparator {} + FormCard.FormTextDelegate { + id: userIdDelegate + text: i18nc("@info:label", "User ID") + description: root.connection.localUserId + + contentItem.children: QQC2.Button { + text: i18nc("@action:button", "Copy user ID to clipboard") + icon.name: "edit-copy" + display: QQC2.AbstractButton.IconOnly + + onClicked: { + Clipboard.saveText(root.connection.localUserId); + } + + QQC2.ToolTip.text: text + QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay + QQC2.ToolTip.visible: hovered + } + } + FormCard.FormDelegateSeparator {} FormCard.FormButtonDelegate { text: i18nc("@action:button", "Show QR Code") icon.name: "view-barcode-qr-symbolic"