Only reset marketplace page if the window isn't visible

CURA-8588
This commit is contained in:
Jaime van Kessel 2022-01-04 13:13:31 +01:00
parent cb3ae0b3d1
commit 61a7203726

View File

@ -86,6 +86,7 @@ class Marketplace(Extension, QObject):
self._window = CuraApplication.getInstance().createQmlComponent(path, {"manager": self})
if self._window is None: # Still None? Failed to load the QML then.
return
if not self._window.isVisible():
self.setTabShown(0)
self._window.show()
self._window.requestActivate() # Bring window into focus, if it was already open in the background.