summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2022-06-02 18:28:23 +0000
committerGitHub <noreply@github.com>2022-06-02 18:28:23 +0000
commit7060693c61ccaeec790dff645d06323e5bf0062b (patch)
tree2a15a0b107c594b0a60cd4f459169818da928189 /resources
parentTranslated using Weblate (Estonian) (diff)
parentIndicate if no topic is set (diff)
downloadnheko-7060693c61ccaeec790dff645d06323e5bf0062b.tar.xz
Merge pull request #1084 from Nheko-Reborn/uiTweaks
Indicate if no topic is set
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/dialogs/RoomSettings.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/resources/qml/dialogs/RoomSettings.qml b/resources/qml/dialogs/RoomSettings.qml

index 332a7b09..bc23a6ad 100644 --- a/resources/qml/dialogs/RoomSettings.qml +++ b/resources/qml/dialogs/RoomSettings.qml
@@ -194,7 +194,12 @@ ApplicationWindow { readOnly: !isTopicEditingAllowed textFormat: isTopicEditingAllowed ? TextEdit.PlainText : TextEdit.RichText - text: isTopicEditingAllowed ? roomSettings.plainRoomTopic : roomSettings.roomTopic + text: { + if (roomSettings.plainRoomTopic === "") + return qsTr("<i>No topic set</i>") + else + return isTopicEditingAllowed ? roomSettings.plainRoomTopic : roomSettings.roomTopic + } wrapMode: TextEdit.WordWrap background: null selectByMouse: !Settings.mobileMode