mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +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
|
# open project file
|
||||||
hiero.core.openProject(filepath.replace(os.path.sep, "/"))
|
hiero.core.openProject(filepath.replace(os.path.sep, "/"))
|
||||||
|
|
||||||
# close previous project
|
# Close previous project if its different to the current project.
|
||||||
project.close()
|
if project.path() != filepath:
|
||||||
|
project.close()
|
||||||
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue