mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 09:30:47 +03:00
Indicate if no topic is set
This commit is contained in:
parent
9bcf55b4d7
commit
cb4d7234c7
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue