mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added project manager to modules settings with beta suffix
This commit is contained in:
parent
afc1bcee4a
commit
fd64a396db
3 changed files with 24 additions and 4 deletions
|
|
@ -2,13 +2,16 @@ from . import PypeModule, ITrayAction
|
|||
|
||||
|
||||
class ProjectManagerAction(PypeModule, ITrayAction):
|
||||
label = "Project Manager"
|
||||
label = "Project Manager (beta)"
|
||||
name = "project_manager"
|
||||
admin_action = True
|
||||
|
||||
def initialize(self, _modules_settings):
|
||||
# This action is always enabled
|
||||
self.enabled = True
|
||||
def initialize(self, modules_settings):
|
||||
enabled = False
|
||||
module_settings = modules_settings.get(self.name)
|
||||
if module_settings:
|
||||
enabled = module_settings.get("enabled", enabled)
|
||||
self.enabled = enabled
|
||||
|
||||
# Tray attributes
|
||||
self.project_manager_window = None
|
||||
|
|
|
|||
|
|
@ -164,5 +164,8 @@
|
|||
},
|
||||
"standalonepublish_tool": {
|
||||
"enabled": true
|
||||
},
|
||||
"project_manager": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
|
|
@ -192,6 +192,20 @@
|
|||
"label": "Enabled"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "dict",
|
||||
"key": "project_manager",
|
||||
"label": "Project Manager (beta)",
|
||||
"collapsible": true,
|
||||
"checkbox_key": "enabled",
|
||||
"children": [
|
||||
{
|
||||
"type": "boolean",
|
||||
"key": "enabled",
|
||||
"label": "Enabled"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue