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:
Roy Nieterau 2023-10-30 23:47:53 +01:00
parent bfa8434d1f
commit 32e88ebc96

View file

@ -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}")