Show ellipses for leaving rooms and space actions, and always confirm

The HIG suggests using ellipses for actions that have a confirmation,
and leaving a space or room is one such cases. Otherwise, the user has
no idea if leaving is an immediate, irreversible action.

It turns out there *was* some cases where pressing this button
(especially for spaces) would actually do it without confirmation, which
is now fixed.
This commit is contained in:
Joshua Goins
2025-07-16 17:41:29 -04:00
parent 4c1a8d3657
commit 9d76e7e30b
4 changed files with 10 additions and 6 deletions

View File

@@ -95,9 +95,11 @@ ColumnLayout {
}
}
QQC2.Button {
text: i18nc("@action:button", "Leave this space")
text: i18nc("@action:button", "Leave this space")
icon.name: "go-previous"
onClicked: root.room.forget()
onClicked: Qt.createComponent('org.kde.neochat', 'ConfirmLeaveDialog').createObject(root.QQC2.ApplicationWindow.window, {
room: root.room
}).open();
}
Item {
Layout.fillWidth: true