mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Fix situation where multiple connect configurations would cause issues
CURA-6011
This commit is contained in:
parent
ee74b9f89f
commit
aad7540366
3 changed files with 19 additions and 30 deletions
|
@ -56,10 +56,14 @@ class PrintersModel(ListModel):
|
|||
connection_type = container_stack.getMetaDataEntry("connection_type")
|
||||
has_remote_connection = connection_type in [str(ConnectionType.NetworkConnection), str(ConnectionType.CloudConnection)]
|
||||
|
||||
if container_stack.getMetaDataEntry("hidden", False) in ["True", True]:
|
||||
continue
|
||||
|
||||
# TODO: Remove reference to connect group name.
|
||||
items.append({"name": container_stack.getMetaDataEntry("connect_group_name", container_stack.getName()),
|
||||
"id": container_stack.getId(),
|
||||
"hasRemoteConnection": has_remote_connection,
|
||||
"connectionType": connection_type})
|
||||
"connectionType": connection_type,
|
||||
"metadata": container_stack.getMetaData().copy()})
|
||||
items.sort(key=lambda i: not i["hasRemoteConnection"])
|
||||
self.setItems(items)
|
Loading…
Add table
Add a link
Reference in a new issue