Improve space suggestions editing

This is confusing to users as there may be two "remove" icons, but one
of them is actually for suggestions.

BUG: 497044
FIXED-IN: 26.04
This commit is contained in:
Joshua Goins
2026-01-13 18:05:03 -05:00
parent 7312bf183d
commit 7f58ee3793

View File

@@ -140,8 +140,8 @@ Item {
}
QQC2.ToolButton {
visible: root.parentRoom?.canSendState("m.space.child") ?? false
text: root.isSuggested ? i18nc("@button", "Don't Make Suggested") : i18nc("@button", "Make Suggested")
icon.name: root.isSuggested ? "edit-delete-remove" : "checkmark"
text: root.isSuggested ? i18nc("@button", "Don't Suggest") : i18nc("@button", "Make Suggested")
icon.name: root.isSuggested ? "window-unpin-symbolic" : "window-pin-symbolic"
display: QQC2.AbstractButton.IconOnly
onClicked: root.parentRoom.toggleChildSuggested(root.roomId)