mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Make activeMachineIsGroup more robust
This commit is contained in:
parent
b78ac0664f
commit
36e49ee6bb
1 changed files with 1 additions and 1 deletions
|
@ -534,7 +534,7 @@ class MachineManager(QObject):
|
||||||
|
|
||||||
@pyqtProperty(bool, notify = printerConnectedStatusChanged)
|
@pyqtProperty(bool, notify = printerConnectedStatusChanged)
|
||||||
def activeMachineIsGroup(self) -> bool:
|
def activeMachineIsGroup(self) -> bool:
|
||||||
return bool(self._printer_output_devices) and self._printer_output_devices[0].clusterSize > 1
|
return bool(self._printer_output_devices) and len(self._printer_output_devices[0].printers) > 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