From 8a4b6adfb3d5bba5ab0a53eb6ca1308ecab394f4 Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Tue, 7 Feb 2017 15:47:45 +0100 Subject: [PATCH] Flash the window icon instead of trying (and failing) to make it visible directly. CURA-3335 Single instance Cura and model reloading --- cura/CuraApplication.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index a797cc2966..783fb9821e 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -461,8 +461,9 @@ class CuraApplication(QtApplication): # Command: Activate the window and bring it to the top. elif command == "focus": - self.getMainWindow().raise_() - self.focusWindow() + # Operating systems these days prevent windows from moving around by themselves. + # 'alert' or flashing the icon in the taskbar is the best thing we do now. + self.getMainWindow().alert(0) else: Logger.log("w", "Received an unrecognized command " + str(command))