mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 07:55:55 +08:00
Close now uses new API stuff
This commit is contained in:
parent
3bd25e5f7f
commit
960ac9af99
@ -49,8 +49,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||||||
time.sleep(1) # Poll every second for printer state.
|
time.sleep(1) # Poll every second for printer state.
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
self._do_update = False
|
self._connection_state == ConnectionState.closed
|
||||||
self._is_connected = False
|
self._thread = None
|
||||||
|
|
||||||
def requestWrite(self, node, file_name = None):
|
def requestWrite(self, node, file_name = None):
|
||||||
self._file = getattr(Application.getInstance().getController().getScene(), "gcode_list")
|
self._file = getattr(Application.getInstance().getController().getScene(), "gcode_list")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user