From c35b1f41352541f59b5ef54873b3c8802dc843e3 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 19 Oct 2021 13:45:25 +0200 Subject: [PATCH] Bring window into focus when it opens It can be behind the Cura main window now, where the user won't see it if it was already open. Contributes to issue CURA-8556. --- 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 5fd976cbfc..be2f66c7b2 100644 --- a/plugins/Marketplace/Marketplace.py +++ b/plugins/Marketplace/Marketplace.py @@ -38,4 +38,5 @@ class Marketplace(Extension): if self._window is None: # Still None? Failed to load the QML then. Logger.error(f"Failed to load QML for Marketplace window.") return - self._window.show() \ No newline at end of file + self._window.show() + self._window.requestActivate() # Bring window into focus, if it was already open in the background.