Fix workio

This commit is contained in:
Toke Stuart Jepsen 2024-05-02 12:41:00 +01:00
parent 3fef14e2e7
commit 65529f3662

View file

@ -51,15 +51,13 @@ def open_file(filepath):
project = hiero.core.projects()[-1]
# Close previous project if its different to the current project.
# Close previous project if its different to the current project.
filepath = filepath.replace(os.path.sep, "/")
if project.path() != filepath:
if project.path().replace(os.path.sep, "/") != filepath:
# open project file
hiero.core.openProject(filepath)
project.close()
return True