Commit e15e720f authored by Nils Cedric Holle's avatar Nils Cedric Holle

Fix project loading

parent 516af8cf
......@@ -1320,9 +1320,6 @@ class PSMainWindow(QMainWindow):
def __openProject(self, path: str = None, start: bool = False):
self.__deactivate()
self.__welcomeLabel.setText(
translate("MainWindow", "Loading project...") + "<br>" + path)
QApplication.processEvents()
self.__closeProject()
if (path is None or not isinstance(path, str)) and not start:
path = QFileDialog.getExistingDirectory(
......@@ -1331,6 +1328,9 @@ class PSMainWindow(QMainWindow):
)
if os.path.isdir(path):
self.__welcomeLabel.setText(
translate("MainWindow", "Loading project...") + "<br>" + path)
QApplication.processEvents()
if os.path.isfile(path + "/puzzle.json"):
self.__manager.load(path, silent=start)
self.setWindowTitle("Puzzlestream - " + path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment