Fix editing topic
This commit is contained in:
parent
7060693c61
commit
7e0bc0658c
@ -194,12 +194,9 @@ ApplicationWindow {
|
||||
|
||||
readOnly: !isTopicEditingAllowed
|
||||
textFormat: isTopicEditingAllowed ? TextEdit.PlainText : TextEdit.RichText
|
||||
text: {
|
||||
if (roomSettings.plainRoomTopic === "")
|
||||
return qsTr("<i>No topic set</i>")
|
||||
else
|
||||
return isTopicEditingAllowed ? roomSettings.plainRoomTopic : roomSettings.roomTopic
|
||||
}
|
||||
text: isTopicEditingAllowed
|
||||
? roomSettings.plainRoomTopic
|
||||
: (roomSettings.plainRoomTopic === "" ? ("<i>" + qsTr("No topic set") + "</i>") : roomSettings.roomTopic)
|
||||
wrapMode: TextEdit.WordWrap
|
||||
background: null
|
||||
selectByMouse: !Settings.mobileMode
|
||||
|
Loading…
Reference in New Issue
Block a user