mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 00:55:51 +08:00
Only reset marketplace page if the window isn't visible
CURA-8588
This commit is contained in:
parent
cb3ae0b3d1
commit
61a7203726
@ -86,7 +86,8 @@ class Marketplace(Extension, QObject):
|
|||||||
self._window = CuraApplication.getInstance().createQmlComponent(path, {"manager": self})
|
self._window = CuraApplication.getInstance().createQmlComponent(path, {"manager": self})
|
||||||
if self._window is None: # Still None? Failed to load the QML then.
|
if self._window is None: # Still None? Failed to load the QML then.
|
||||||
return
|
return
|
||||||
self.setTabShown(0)
|
if not self._window.isVisible():
|
||||||
|
self.setTabShown(0)
|
||||||
self._window.show()
|
self._window.show()
|
||||||
self._window.requestActivate() # Bring window into focus, if it was already open in the background.
|
self._window.requestActivate() # Bring window into focus, if it was already open in the background.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user