Make the closing + opening of projects from welcome screen a little smoother
This commit is contained in:
@@ -1146,6 +1146,7 @@ class GuiMain(QMainWindow):
|
||||
@pyqtSlot(Path)
|
||||
def _openProject(self, path: Path) -> None:
|
||||
"""Handle an open project request."""
|
||||
qApp.processEvents()
|
||||
self.openProject(path)
|
||||
return
|
||||
|
||||
|
||||
@@ -197,6 +197,9 @@ class GuiWelcome(QDialog):
|
||||
def _openProjectPath(self, path: Path) -> None:
|
||||
"""Emit a project open signal."""
|
||||
if isinstance(path, Path):
|
||||
# Hide before emitting the open project signal so that any
|
||||
# close/backup dialogs don't pop up over it.
|
||||
self.hide()
|
||||
self.openProjectRequest.emit(path)
|
||||
self.close()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user