Force plain text on TextEdits

This commit is contained in:
Timmy Welch 2024-03-12 18:21:31 -07:00
parent 37c809db2a
commit 48fd1c2897

View File

@ -848,7 +848,10 @@ class TaggerWindow(QtWidgets.QMainWindow):
def metadata_to_form(self) -> None:
def assign_text(field: QtWidgets.QLineEdit | QtWidgets.QTextEdit, value: Any) -> None:
if value is not None:
field.setText(str(value))
if isinstance(field, QtWidgets.QTextEdit) and False:
field.setPlainText(str(value))
else:
field.setText(str(value))
md = self.metadata