Add canUpdateFirmware property to printer output devices

This commit is contained in:
fieldOfView 2018-08-08 15:53:26 +02:00
parent 339987be9d
commit 688a5083d2
5 changed files with 11 additions and 1 deletions

View file

@ -29,6 +29,8 @@ class GenericOutputController(PrinterOutputController):
self._output_device.printersChanged.connect(self._onPrintersChanged)
self._active_printer = None
self.can_update_firmware = True
def _onPrintersChanged(self):
if self._active_printer:
self._active_printer.stateChanged.disconnect(self._onPrinterStateChanged)