USB printers also get their name set

CL-541
This commit is contained in:
Jaime van Kessel 2018-01-08 09:41:18 +01:00
parent d0ec7d10ce
commit 2ca06f383e

View file

@ -232,6 +232,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
num_extruders = container_stack.getProperty("machine_extruder_count", "value")
# Ensure that a printer is created.
self._printers = [PrinterOutputModel(output_controller=USBPrinterOuptutController(self), number_of_extruders=num_extruders)]
self._printers[0].updateName(container_stack.getName())
self.setConnectionState(ConnectionState.connected)
self._update_thread.start()