mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #436 from pypeclub/bugfix/empty_enumerator_attributes
Bugfix/empty enumerator attributes
This commit is contained in:
commit
7e9787ee8c
1 changed files with 8 additions and 0 deletions
|
|
@ -409,6 +409,10 @@ class CustomAttributes(BaseAction):
|
|||
))
|
||||
)
|
||||
)
|
||||
|
||||
# Make sure there is at least one item
|
||||
if not app_definitions:
|
||||
app_definitions.append({"empty": "< Empty >"})
|
||||
return app_definitions
|
||||
|
||||
def applications_attribute(self, event):
|
||||
|
|
@ -432,6 +436,10 @@ class CustomAttributes(BaseAction):
|
|||
if usage:
|
||||
tools_data.append({tool_name: tool_name})
|
||||
|
||||
# Make sure there is at least one item
|
||||
if not tools_data:
|
||||
tools_data.append({"empty": "< Empty >"})
|
||||
|
||||
tools_custom_attr_data = {
|
||||
"label": "Tools",
|
||||
"key": "tools_env",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue