mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 19:26:04 +08:00
Ensure that writeStarted is called when attempting to print via USB
This commit is contained in:
parent
eae8e80923
commit
9a3d9dd2c1
@ -115,7 +115,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
|||||||
def requestWrite(self, nodes, file_name = None, filter_by_machine = False, file_handler = None, **kwargs):
|
def requestWrite(self, nodes, file_name = None, filter_by_machine = False, file_handler = None, **kwargs):
|
||||||
if self._is_printing:
|
if self._is_printing:
|
||||||
return # Aleady printing
|
return # Aleady printing
|
||||||
|
self.writeStarted.emit(self)
|
||||||
# cancel any ongoing preheat timer before starting a print
|
# cancel any ongoing preheat timer before starting a print
|
||||||
self._printers[0].getController().stopPreheatTimers()
|
self._printers[0].getController().stopPreheatTimers()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user