Delect selected files upon comm disconnect in the printer handler
Should solve #861
This commit is contained in:
1 parent
a42c5edaa3
commit
88af79509f
1 file changed
+7
@@ -762,6 +762,13 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
|
||||
self._analysisQueue.resume() # printing done, put those cpu cycles to good use
|
||||
elif self._comm is not None and state == self._comm.STATE_PRINTING:
|
||||
self._analysisQueue.pause() # do not analyse files while printing
|
||||
elif state == self._comm.STATE_CLOSED or state == self._comm.STATE_CLOSED_WITH_ERROR:
|
||||
if self._comm is not None:
|
||||
self._comm = None
|
||||
|
||||
self._setProgressData(0, None, None, None)
|
||||
self._setCurrentZ(None)
|
||||
self._setJobData(None, None, None)
|
||||
|
||||
self._setState(state)
|
||||
|
||||
|
||||
Reference in new issue
Block a user