Improve the Advanced Room settings page more

I added a separator, made it so the "Copy Room ID to clipboard" button
is always shown, and made it more obvious that "Upgrade Room" prompts
you first.
This commit is contained in:
Joshua Goins
2026-01-09 17:18:47 -05:00
parent dd59e63574
commit 9b7d16973d

View File

@@ -28,7 +28,6 @@ FormCard.FormCardPage {
description: root.room.id
contentItem.children: QQC2.Button {
visible: roomIdDelegate.hovered
text: i18nc("@action:button", "Copy room ID to clipboard")
icon.name: "edit-copy"
display: QQC2.AbstractButton.IconOnly
@@ -42,14 +41,19 @@ FormCard.FormCardPage {
QQC2.ToolTip.visible: hovered
}
}
FormCard.FormDelegateSeparator {
above: roomIdDelegate
below: roomVersionDelegate
}
FormCard.FormTextDelegate {
id: roomVersionDelegate
text: i18nc("@info:label", "Room Version")
description: root.room.version
contentItem.children: QQC2.Button {
visible: root.room.canSwitchVersions()
enabled: root.room.version < root.room.maxRoomVersion
text: i18nc("@action:button", "Upgrade Room")
text: i18nc("@action:button", "Upgrade Room")
icon.name: "arrow-up-double"
onClicked: {