menu named AYON menu and add condition check on workfile path save so that workfile is not overwritten

This commit is contained in:
Kayla Man 2024-06-05 21:01:58 +08:00
parent f83ee81ba0
commit 93dd3f2ba4
2 changed files with 3 additions and 1 deletions

View file

@ -628,4 +628,6 @@ def version_up_current_workfile():
work_root, file_template, data, extensions, True
)
new_workfile_path = version_up(last_workfile_path)
if os.path.exists(new_workfile_path):
new_workfile_path = version_up(new_workfile_path)
host.save_workfile(new_workfile_path)

View file

@ -279,7 +279,7 @@ class PublishToolModel(BaseSettingsModel):
class GlobalToolsModel(BaseSettingsModel):
ayon_menu: AYONMenuModel = SettingsField(
default_factory=AYONMenuModel,
title="Tools"
title="AYON Menu"
)
creator: CreatorToolModel = SettingsField(
default_factory=CreatorToolModel,