Skip to content

Commit

Permalink
Add wait cursor when creating a project manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodoros Katzalis authored and thodkatz committed Jul 30, 2024
1 parent 36d04f5 commit 1b3a08c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ilastik/shell/gui/ilastikShell.py
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,7 @@ def _loadProject(self, hdf5File, projectFilePath, workflow_class, readOnly, impo

try:
assert self.projectManager is None, "Expected projectManager to be None."
QApplication.setOverrideCursor(Qt.WaitCursor)
self.projectManager = ProjectManager(
self,
workflow_class,
Expand All @@ -1645,6 +1646,8 @@ def _loadProject(self, hdf5File, projectFilePath, workflow_class, readOnly, impo
# no project will be loaded, free the file resource
hdf5File.close()
return
finally:
QApplication.restoreOverrideCursor()

try:
# Add all the applets from the workflow
Expand Down

0 comments on commit 1b3a08c

Please sign in to comment.