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