mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
System settings entity does not require schema data as init arg
This commit is contained in:
parent
f4af3bc034
commit
83822973cb
1 changed files with 9 additions and 1 deletions
|
|
@ -7,7 +7,10 @@ from abc import ABCMeta, abstractmethod, abstractproperty
|
|||
|
||||
import six
|
||||
|
||||
from .lib import NOT_SET
|
||||
from .lib import (
|
||||
NOT_SET,
|
||||
gui_schema
|
||||
)
|
||||
from .constants import (
|
||||
SYSTEM_SETTINGS_KEY,
|
||||
WRAPPER_TYPES,
|
||||
|
|
@ -671,6 +674,11 @@ class RootEntity(BaseEntity):
|
|||
|
||||
|
||||
class SystemRootEntity(RootEntity):
|
||||
def __init__(self, schema_data=None):
|
||||
if schema_data is None:
|
||||
schema_data = gui_schema("system_schema", "schema_main")
|
||||
super(SystemRootEntity, self).__init__(schema_data)
|
||||
|
||||
def _reset_values(self):
|
||||
default_value = get_default_settings()[SYSTEM_SETTINGS_KEY]
|
||||
for key, child_obj in self.non_gui_children.items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue