mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:19:15 +08:00
Add connection_types to fake machine
Contributes to CL-1331
This commit is contained in:
parent
d391ec4e6b
commit
df6898ae45
@ -34,7 +34,8 @@ class Machines(QObject):
|
|||||||
"group_id": "",
|
"group_id": "",
|
||||||
"group_name": "",
|
"group_name": "",
|
||||||
"um_network_key": "",
|
"um_network_key": "",
|
||||||
"configuration": {}
|
"configuration": {},
|
||||||
|
"connection_types": []
|
||||||
}
|
}
|
||||||
global_stack = self._application.getGlobalContainerStack()
|
global_stack = self._application.getGlobalContainerStack()
|
||||||
if global_stack:
|
if global_stack:
|
||||||
@ -46,6 +47,8 @@ class Machines(QObject):
|
|||||||
if "um_network_key" in metadata:
|
if "um_network_key" in metadata:
|
||||||
fake_machine["um_network_key"] = global_stack.getMetaDataEntry("um_network_key")
|
fake_machine["um_network_key"] = global_stack.getMetaDataEntry("um_network_key")
|
||||||
|
|
||||||
|
fake_machine["connection_types"] = global_stack.configuredConnectionTypes
|
||||||
|
|
||||||
return fake_machine
|
return fake_machine
|
||||||
|
|
||||||
## Set the current machine's friendy name.
|
## Set the current machine's friendy name.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user