mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
remove overrides should work now
This commit is contained in:
parent
71e61a6c68
commit
2a65a2ccb9
1 changed files with 21 additions and 0 deletions
|
|
@ -1636,6 +1636,13 @@ class DictExpandWidget(ExpandingWidget, ConfigWidget):
|
|||
for child_data in input_data.get("children", []):
|
||||
self.add_children_gui(child_data, values)
|
||||
|
||||
def remove_overrides(self):
|
||||
self._is_overriden = False
|
||||
self._is_modified = False
|
||||
self._was_overriden = False
|
||||
for item in self.input_fields:
|
||||
item.remove_overrides()
|
||||
|
||||
def discard_changes(self):
|
||||
for item in self.input_fields:
|
||||
item.discard_changes()
|
||||
|
|
@ -1836,6 +1843,13 @@ class DictWidget(QtWidgets.QWidget, ConfigWidget):
|
|||
for child_data in input_data.get("children", []):
|
||||
self.add_children_gui(child_data, values)
|
||||
|
||||
def remove_overrides(self):
|
||||
self._is_overriden = False
|
||||
self._is_modified = False
|
||||
self._was_overriden = False
|
||||
for item in self.input_fields:
|
||||
item.remove_overrides()
|
||||
|
||||
def discard_changes(self):
|
||||
for item in self.input_fields:
|
||||
item.discard_changes()
|
||||
|
|
@ -2065,6 +2079,13 @@ class DictInvisible(QtWidgets.QWidget, ConfigWidget):
|
|||
for input_field in self.input_fields:
|
||||
input_field.hierarchical_style_update()
|
||||
|
||||
def remove_overrides(self):
|
||||
self._is_overriden = False
|
||||
self._is_modified = False
|
||||
self._was_overriden = False
|
||||
for item in self.input_fields:
|
||||
item.remove_overrides()
|
||||
|
||||
def discard_changes(self):
|
||||
for item in self.input_fields:
|
||||
item.discard_changes()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue