Expose configurations the same way as connectivity

Contributes to CL-1154
This commit is contained in:
Ian Paschal 2019-01-31 10:50:14 +01:00
parent 858e2f6b42
commit 389bdeb0c7

View file

@ -536,6 +536,12 @@ class MachineManager(QObject):
return has_remote_connection
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)
def activeMachineIsGroup(self) -> bool:
return bool(self._printer_output_devices) and len(self._printer_output_devices[0].printers) > 1