Cancelling a print that is not ongoing doesn't make sense
This commit is contained in:
parent
beb5850361
commit
21034b381c
1 changed files with 4 additions and 0 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in a new issue