mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Assure bool
This commit is contained in:
parent
bbddbcde9a
commit
1012eb7553
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue