mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
remo identifier constance
This commit is contained in:
parent
0fdff60147
commit
bc99edd74d
1 changed files with 2 additions and 7 deletions
|
|
@ -18,9 +18,6 @@ from .settings import (
|
|||
)
|
||||
|
||||
|
||||
IDENTIFIER_PREFIX = "core"
|
||||
|
||||
|
||||
class CoreAddon(BaseServerAddon):
|
||||
settings_model = CoreSettings
|
||||
|
||||
|
|
@ -51,7 +48,7 @@ class CoreAddon(BaseServerAddon):
|
|||
# Add 'Create Project Folder Structure' action to folders.
|
||||
output.append(
|
||||
SimpleActionManifest(
|
||||
identifier=f"{IDENTIFIER_PREFIX}.createprojectstructure",
|
||||
identifier="core.createprojectstructure",
|
||||
label="Create Project Folder Structure",
|
||||
icon={
|
||||
"type": "material-symbols",
|
||||
|
|
@ -74,9 +71,7 @@ class CoreAddon(BaseServerAddon):
|
|||
|
||||
project_name = executor.context.project_name
|
||||
|
||||
if executor.identifier == \
|
||||
f"{IDENTIFIER_PREFIX}.create_project_structure":
|
||||
|
||||
if executor.identifier == "core.createprojectstructure":
|
||||
if not project_name:
|
||||
logger.error(
|
||||
f"Can't execute {executor.identifier} because"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue