From df6898ae4576ac39290d7d0f690965bae00eb941 Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Thu, 9 May 2019 16:41:15 +0200 Subject: [PATCH] Add connection_types to fake machine Contributes to CL-1331 --- cura/API/Machines.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cura/API/Machines.py b/cura/API/Machines.py index c7b2b492c2..2e08f2bd07 100644 --- a/cura/API/Machines.py +++ b/cura/API/Machines.py @@ -34,7 +34,8 @@ class Machines(QObject): "group_id": "", "group_name": "", "um_network_key": "", - "configuration": {} + "configuration": {}, + "connection_types": [] } global_stack = self._application.getGlobalContainerStack() if global_stack: @@ -45,6 +46,8 @@ class Machines(QObject): fake_machine["group_name"] = global_stack.getMetaDataEntry("group_name") if "um_network_key" in metadata: fake_machine["um_network_key"] = global_stack.getMetaDataEntry("um_network_key") + + fake_machine["connection_types"] = global_stack.configuredConnectionTypes return fake_machine