Skip to content

Commit

Permalink
fix integer fields not updating
Browse files Browse the repository at this point in the history
  • Loading branch information
yconst committed Jan 22, 2024
1 parent 5fd4499 commit df74b51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion studio/Python/tinymovr/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def __init__(self, name, node, *args, **kwargs):
self.text_editor.editingFinished.connect(self._on_editor_text_changed)
else:
self.text_editor = QLineEdit(format_value(node.get_value()))
self.text_editor.editingFinished.connect(self._on_editor_text_changed)
if not editable:
self.text_editor.setReadOnly(True)
self._checked = False
Expand All @@ -153,7 +154,7 @@ def _on_editor_text_changed(self):
except UndefinedUnitError:
attr.set_value(text)
if "reload_data" in attr.meta and attr.meta["reload_data"]:
self.worker.reset()
self.treeWidget().window().worker.reset()
return
else:
self.text_editor.setText(format_value(attr.get_value()))
Expand Down

0 comments on commit df74b51

Please sign in to comment.