mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Show workfiles tool if current file is not set to make it clear there's user interaction needed to save
This commit is contained in:
parent
bfa8434d1f
commit
32e88ebc96
1 changed files with 3 additions and 0 deletions
|
|
@ -118,6 +118,9 @@ class OpenPypeMenu(QtWidgets.QWidget):
|
|||
host = registered_host()
|
||||
current_file = host.get_current_workfile()
|
||||
if not current_file:
|
||||
print("Current project is not saved. "
|
||||
"Please save once first via workfiles tool.")
|
||||
host_tools.show_workfiles()
|
||||
return
|
||||
|
||||
print(f"Saving current file to: {current_file}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue