mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Refactor conditionalEnum -> conditional_enum
Avoid logs like: ``` DEBUG settings.settings_field | Deprecated argument: conditionalEnum ```
This commit is contained in:
parent
4718b2ec36
commit
93557a8a69
2 changed files with 5 additions and 5 deletions
|
|
@ -106,7 +106,7 @@ class FallbackProductModel(BaseSettingsModel):
|
|||
fallback_type: str = SettingsField(
|
||||
title="Fallback config type",
|
||||
enum_resolver=_fallback_ocio_config_profile_types,
|
||||
conditionalEnum=True,
|
||||
conditional_enum=True,
|
||||
default="builtin_path",
|
||||
description=(
|
||||
"Type of config which needs to be used in case published "
|
||||
|
|
@ -162,7 +162,7 @@ class CoreImageIOConfigProfilesModel(BaseSettingsModel):
|
|||
type: str = SettingsField(
|
||||
title="Profile type",
|
||||
enum_resolver=_ocio_config_profile_types,
|
||||
conditionalEnum=True,
|
||||
conditional_enum=True,
|
||||
default="builtin_path",
|
||||
section="---",
|
||||
)
|
||||
|
|
|
|||
|
|
@ -340,7 +340,7 @@ class ResizeModel(BaseSettingsModel):
|
|||
title="Type",
|
||||
description="Type of resizing",
|
||||
enum_resolver=lambda: _resize_types_enum,
|
||||
conditionalEnum=True,
|
||||
conditional_enum=True,
|
||||
default="source"
|
||||
)
|
||||
|
||||
|
|
@ -373,7 +373,7 @@ class ExtractThumbnailOIIODefaultsModel(BaseSettingsModel):
|
|||
title="Type",
|
||||
description="Transcoding type",
|
||||
enum_resolver=lambda: _thumbnail_oiio_transcoding_type,
|
||||
conditionalEnum=True,
|
||||
conditional_enum=True,
|
||||
default="colorspace"
|
||||
)
|
||||
|
||||
|
|
@ -476,7 +476,7 @@ class ExtractOIIOTranscodeOutputModel(BaseSettingsModel):
|
|||
"colorspace",
|
||||
title="Transcoding type",
|
||||
enum_resolver=_extract_oiio_transcoding_type,
|
||||
conditionalEnum=True,
|
||||
conditional_enum=True,
|
||||
description=(
|
||||
"Select the transcoding type for your output, choosing either "
|
||||
"*Colorspace* or *Display&View* transform."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue