From 389bdeb0c74a21260c3dc454a1ed64dfd63049ab Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Thu, 31 Jan 2019 10:50:14 +0100 Subject: [PATCH] Expose configurations the same way as connectivity Contributes to CL-1154 --- cura/Settings/MachineManager.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index ae74d76734..150cf25a5e 100755 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -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