remove project archive confirmation

This commit is contained in:
David Lai 2021-09-15 11:14:31 +08:00
parent 0bf84ad813
commit 7ac2c04f61
3 changed files with 0 additions and 36 deletions

View file

@ -23,6 +23,5 @@
"unreal/4-26"
],
"tools_env": [],
"archive_confirm": "",
"active": true
}

View file

@ -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()

View file

@ -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",