From 61a7203726adadf519f74041f59082514ba79f22 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 4 Jan 2022 13:13:31 +0100 Subject: [PATCH] Only reset marketplace page if the window isn't visible CURA-8588 --- plugins/Marketplace/Marketplace.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Marketplace/Marketplace.py b/plugins/Marketplace/Marketplace.py index 8ce062394e..2d98947572 100644 --- a/plugins/Marketplace/Marketplace.py +++ b/plugins/Marketplace/Marketplace.py @@ -86,7 +86,8 @@ 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 - self.setTabShown(0) + 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.