mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
implemented discard changes for form layout
This commit is contained in:
parent
1c40104d51
commit
bb78d47d48
1 changed files with 7 additions and 0 deletions
|
|
@ -2039,6 +2039,13 @@ class DictFormWidget(ConfigWidget, ConfigObject):
|
|||
return
|
||||
super(DictFormWidget, self).mouseReleaseEvent(event)
|
||||
|
||||
def discard_changes(self):
|
||||
for item in self.input_fields.values():
|
||||
item.discard_changes()
|
||||
|
||||
self._is_modified = self.child_modified
|
||||
self._is_overriden = self._was_overriden
|
||||
|
||||
def _on_value_change(self, item=None):
|
||||
if self.ignore_value_changes:
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue