mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
deprecated not passed name in 'AYONSettingsRegistry'
This commit is contained in:
parent
b403db76e6
commit
d4092c8e31
1 changed files with 10 additions and 1 deletions
|
|
@ -536,12 +536,21 @@ class AYONSettingsRegistry(JSONSettingRegistry):
|
|||
"""Class handling AYON general settings registry.
|
||||
|
||||
Args:
|
||||
name (Optional[str]): Name of the registry.
|
||||
name (Optional[str]): Name of the registry. Using 'None' or not
|
||||
passing name is deprecated.
|
||||
|
||||
"""
|
||||
def __init__(self, name: Optional[str] = None) -> None:
|
||||
if not name:
|
||||
name = "AYON_settings"
|
||||
warnings.warn(
|
||||
(
|
||||
"Used 'AYONSettingsRegistry' without 'name' argument."
|
||||
" The argument will be required in future versions."
|
||||
),
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
path = get_launcher_storage_dir()
|
||||
super().__init__(name, path)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue