mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
menu named AYON menu and add condition check on workfile path save so that workfile is not overwritten
This commit is contained in:
parent
f83ee81ba0
commit
93dd3f2ba4
2 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue