Cancelling a print that is not ongoing doesn't make sense
This commit is contained in:
1 parent
beb5850361
commit
21034b381c
1 file changed
+4
@@ -665,6 +665,10 @@ class MachineCom(object):
|
||||
if not self.isOperational() or self.isStreaming():
|
||||
return
|
||||
|
||||
if not self.isBusy() or self._currentFile is None:
|
||||
# we aren't even printing, nothing to cancel...
|
||||
return
|
||||
|
||||
self._changeState(self.STATE_OPERATIONAL)
|
||||
|
||||
if self.isSdFileSelected():
|
||||
|
||||
Reference in new issue
Block a user