mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Only close previous project if its different to current project.
This commit is contained in:
parent
b2671c6b85
commit
8499660acb
1 changed files with 3 additions and 4 deletions
|
|
@ -54,10 +54,9 @@ def open_file(filepath):
|
|||
# open project file
|
||||
hiero.core.openProject(filepath.replace(os.path.sep, "/"))
|
||||
|
||||
# close previous project
|
||||
project.close()
|
||||
|
||||
|
||||
# Close previous project if its different to the current project.
|
||||
if project.path() != filepath:
|
||||
project.close()
|
||||
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue