Merge pull request #1084 from Nheko-Reborn/uiTweaks

Indicate if no topic is set
This commit is contained in:
DeepBlueV7.X 2022-06-02 18:28:23 +00:00 committed by GitHub
commit 7060693c61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -194,7 +194,12 @@ ApplicationWindow {
readOnly: !isTopicEditingAllowed readOnly: !isTopicEditingAllowed
textFormat: isTopicEditingAllowed ? TextEdit.PlainText : TextEdit.RichText 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 wrapMode: TextEdit.WordWrap
background: null background: null
selectByMouse: !Settings.mobileMode selectByMouse: !Settings.mobileMode