Closing a connection now actually stops the updates

CL-541
This commit is contained in:
Jaime van Kessel 2017-11-21 10:19:17 +01:00
parent a9f52c2ad6
commit fd548975cc
3 changed files with 8 additions and 3 deletions

View file

@ -54,6 +54,9 @@ class PrinterOutputDevice(QObject, OutputDevice):
def isConnected(self):
return self._connection_state != ConnectionState.closed and self._connection_state != ConnectionState.error
def setConnectionState(self, new_state):
self._connection_state = new_state
def _update(self):
pass