Cancelling a print that is not ongoing doesn't make sense

This commit is contained in:
Gina Häußge 2016-02-16 10:04:06 +01:00
parent beb5850361
commit 21034b381c

View file

@ -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():