Fix restart button

This commit is contained in:
Gina Häußge committed 2018-06-12 13:47:52 +02:00
1 parent 4e83466af3
commit 4630cc8ee0
1 file changed
+1 -1
+1 -1
View File
@@ -738,7 +738,7 @@ class Printer(PrinterInterface,
return self._protocol is not None and self._protocol.state == ProtocolState.DISCONNECTED_WITH_ERROR
def is_ready(self, *args, **kwargs):
return self.is_operational() and not self._protocol.state in (ProtocolState.PROCESSING, ProtocolState.PAUSED)
return self.is_operational() and not self._protocol.state in ProtocolState.PROCESSING_STATES
def is_sd_ready(self, *args, **kwargs):
if not settings().getBoolean(["feature", "sdSupport"]) or self._protocol is None: