mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 06:12:19 +01:00
remove project archive confirmation
This commit is contained in:
parent
0bf84ad813
commit
7ac2c04f61
3 changed files with 0 additions and 36 deletions
|
|
@ -23,6 +23,5 @@
|
|||
"unreal/4-26"
|
||||
],
|
||||
"tools_env": [],
|
||||
"archive_confirm": "",
|
||||
"active": true
|
||||
}
|
||||
|
|
@ -755,35 +755,6 @@ class ProjectSettings(RootEntity):
|
|||
"""
|
||||
return DEFAULTS_DIR
|
||||
|
||||
def settings_value(self):
|
||||
output = super(ProjectSettings, self).settings_value()
|
||||
|
||||
anatomy = output.get(PROJECT_ANATOMY_KEY) or {}
|
||||
|
||||
# Evaluate project archiving flag
|
||||
#
|
||||
archive_confirm = anatomy.get("attributes", {}).get("archive_confirm")
|
||||
if archive_confirm:
|
||||
# set flag
|
||||
if archive_confirm == self.project_name:
|
||||
self.log.debug(
|
||||
"Project archiving."
|
||||
)
|
||||
anatomy["attributes"]["archived"] = True
|
||||
|
||||
else:
|
||||
self.log.debug(
|
||||
"Project archiving confirmation string not matched."
|
||||
)
|
||||
anatomy["attributes"]["archive_confirm"] = ""
|
||||
anatomy["attributes"]["archived"] = False
|
||||
|
||||
else:
|
||||
if anatomy and "attributes" in anatomy:
|
||||
anatomy["attributes"]["archived"] = False
|
||||
|
||||
return output
|
||||
|
||||
def _save_studio_values(self):
|
||||
settings_value = self.settings_value()
|
||||
|
||||
|
|
|
|||
|
|
@ -70,12 +70,6 @@
|
|||
"key": "tools_env",
|
||||
"label": "Tools"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"key": "archive_confirm",
|
||||
"label": "Archive Project",
|
||||
"placeholder": "Input project name to confirm archiving."
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"key": "active",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue