Bind spoiler revealed state

This commit is contained in:
Carl Schwan
2021-06-17 22:36:52 +00:00
committed by Smitty van Bodegom
parent 8474136f57
commit 680b0cc3bd

View File

@@ -17,6 +17,7 @@ TextEdit {
property bool isEmote: false
property string textMessage: model.display
property bool spoilerRevealed: !hasSpoiler.test(textMessage)
ListView.onReused: Qt.binding(() => !hasSpoiler.test(textMessage))
text: "<style>
table {