Assure bool

This commit is contained in:
ChrisTerBeke 2018-12-20 14:48:56 +01:00
parent bbddbcde9a
commit 1012eb7553

View file

@ -531,7 +531,7 @@ class MachineManager(QObject):
@pyqtProperty(bool, notify = printerConnectedStatusChanged) @pyqtProperty(bool, notify = printerConnectedStatusChanged)
def activeMachineIsGroup(self) -> bool: def activeMachineIsGroup(self) -> bool:
return self._printer_output_devices and self._printer_output_devices[0].clusterSize > 1 return bool(self._printer_output_devices) and self._printer_output_devices[0].clusterSize > 1
@pyqtProperty(bool, notify = printerConnectedStatusChanged) @pyqtProperty(bool, notify = printerConnectedStatusChanged)
def activeMachineHasActiveNetworkConnection(self) -> bool: def activeMachineHasActiveNetworkConnection(self) -> bool: