mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
few minor fixes
This commit is contained in:
parent
4301c5dcdc
commit
5bdee32e7e
2 changed files with 2 additions and 11 deletions
|
|
@ -307,7 +307,7 @@ class ProjectWidget(QtWidgets.QWidget):
|
|||
self.reset()
|
||||
|
||||
def reset(self):
|
||||
values = config.global_project_configurations()
|
||||
values = {"project": config.global_project_configurations()}
|
||||
schema = lib.gui_schema("projects_schema", "0_project_gui_schema")
|
||||
self.keys = schema.get("keys", [])
|
||||
self.add_children_gui(schema, values)
|
||||
|
|
@ -316,7 +316,6 @@ class ProjectWidget(QtWidgets.QWidget):
|
|||
def add_children_gui(self, child_configuration, values):
|
||||
item_type = child_configuration["type"]
|
||||
klass = lib.TypeToKlass.types.get(item_type)
|
||||
|
||||
item = klass(
|
||||
child_configuration, values, self.keys, self
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1832,9 +1832,6 @@ class DictInvisible(QtWidgets.QWidget, ConfigWidget):
|
|||
|
||||
self.input_fields = []
|
||||
|
||||
if "key" not in input_data:
|
||||
print(json.dumps(input_data, indent=4))
|
||||
|
||||
self.key = input_data["key"]
|
||||
self.keys = list(parent_keys)
|
||||
self.keys.append(self.key)
|
||||
|
|
@ -1869,13 +1866,8 @@ class DictInvisible(QtWidgets.QWidget, ConfigWidget):
|
|||
|
||||
def add_children_gui(self, child_configuration, values):
|
||||
item_type = child_configuration["type"]
|
||||
if item_type == "schema":
|
||||
for _schema in child_configuration["children"]:
|
||||
children = config.gui_schema(_schema)
|
||||
self.add_children_gui(children, values)
|
||||
return
|
||||
|
||||
klass = TypeToKlass.types.get(item_type)
|
||||
|
||||
item = klass(
|
||||
child_configuration, values, self.keys, self
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue