Flash the window icon instead of trying (and failing) to make it visible directly.

CURA-3335 Single instance Cura and model reloading
This commit is contained in:
Simon Edwards 2017-02-07 15:47:45 +01:00
parent 71d2990ca9
commit 8a4b6adfb3

View file

@ -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))