mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:39:03 +08:00
Assure bool
This commit is contained in:
parent
bbddbcde9a
commit
1012eb7553
@ -531,7 +531,7 @@ class MachineManager(QObject):
|
||||
|
||||
@pyqtProperty(bool, notify = printerConnectedStatusChanged)
|
||||
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)
|
||||
def activeMachineHasActiveNetworkConnection(self) -> bool:
|
||||
|
Loading…
x
Reference in New Issue
Block a user