Only close previous project if its different to current project.

This commit is contained in:
Toke Stuart Jepsen 2024-04-15 12:14:24 +01:00
parent b2671c6b85
commit 8499660acb

View file

@ -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