mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Expose configurations the same way as connectivity
Contributes to CL-1154
This commit is contained in:
parent
858e2f6b42
commit
389bdeb0c7
1 changed files with 6 additions and 0 deletions
|
@ -536,6 +536,12 @@ class MachineManager(QObject):
|
||||||
return has_remote_connection
|
return has_remote_connection
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@pyqtProperty("QVariantList", notify=globalContainerChanged)
|
||||||
|
def activeMachineConfiguredConnectionTypes(self):
|
||||||
|
if self._global_container_stack:
|
||||||
|
return self._global_container_stack.configuredConnectionTypes
|
||||||
|
return []
|
||||||
|
|
||||||
@pyqtProperty(bool, notify = printerConnectedStatusChanged)
|
@pyqtProperty(bool, notify = printerConnectedStatusChanged)
|
||||||
def activeMachineIsGroup(self) -> bool:
|
def activeMachineIsGroup(self) -> bool:
|
||||||
return bool(self._printer_output_devices) and len(self._printer_output_devices[0].printers) > 1
|
return bool(self._printer_output_devices) and len(self._printer_output_devices[0].printers) > 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue