mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 18:27:51 -06:00
Fix code-styling
This commit is contained in:
parent
9fa8498162
commit
f91b6faecc
3 changed files with 7 additions and 3 deletions
|
@ -95,7 +95,9 @@ class SingleInstance:
|
|||
elif command == "focus":
|
||||
# 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._application.callLater(lambda: self._application.getMainWindow().alert(0))
|
||||
main_window = self._application.getMainWindow()
|
||||
if main_window is not None:
|
||||
self._application.callLater(lambda: main_window.alert(0)) # type: ignore # I don't know why MyPy complains here
|
||||
|
||||
# Command: Close the socket connection. We're done.
|
||||
elif command == "close-connection":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue