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.
This commit is contained in:
Ghostkeeper 2021-10-19 13:45:25 +02:00
parent 5897b3de38
commit c35b1f4135
No known key found for this signature in database
GPG Key ID: 68F39EA88EEED5FF

View File

@ -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()
self._window.show()
self._window.requestActivate() # Bring window into focus, if it was already open in the background.