mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
Add connection_types to fake machine
Contributes to CL-1331
This commit is contained in:
parent
d391ec4e6b
commit
df6898ae45
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
@ -46,6 +47,8 @@ class Machines(QObject):
|
|||
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
|
||||
|
||||
## Set the current machine's friendy name.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue