mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 06:45:09 -06:00
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:
parent
71d2990ca9
commit
8a4b6adfb3
1 changed files with 3 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue