mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
call aplpy_overrides on project change
This commit is contained in:
parent
a59aa34a8a
commit
407fbbe77b
1 changed files with 11 additions and 3 deletions
|
|
@ -345,9 +345,17 @@ class ProjectWidget(QtWidgets.QWidget, PypeConfigurationWidget):
|
|||
self.content_layout.addWidget(item)
|
||||
|
||||
def _on_project_change(self):
|
||||
self.is_overidable = (
|
||||
self.project_list_widget.project_name() is not None
|
||||
)
|
||||
project_name = self.project_list_widget.project_name()
|
||||
|
||||
if project_name is None:
|
||||
overrides = None
|
||||
self.is_overidable = False
|
||||
else:
|
||||
overrides = config.project_preset_overrides(project_name)
|
||||
self.is_overidable = True
|
||||
|
||||
for item in self.input_fields:
|
||||
item.apply_overrides(overrides)
|
||||
|
||||
def _save(self):
|
||||
output = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue