Ensure that writeStarted is called when attempting to print via USB

This commit is contained in:
Jaime van Kessel 2019-01-31 17:42:20 +01:00
parent eae8e80923
commit 9a3d9dd2c1

View file

@ -115,7 +115,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
def requestWrite(self, nodes, file_name = None, filter_by_machine = False, file_handler = None, **kwargs):
if self._is_printing:
return # Aleady printing
self.writeStarted.emit(self)
# cancel any ongoing preheat timer before starting a print
self._printers[0].getController().stopPreheatTimers()