mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
Use "NotConnected" as default for the connection state
CURA-6011
This commit is contained in:
parent
89040b6d8f
commit
d9d1c93bd0
3 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@ class GlobalStacksModel(ListModel):
|
|||
container_stacks = ContainerRegistry.getInstance().findContainerStacks(type = "machine")
|
||||
|
||||
for container_stack in container_stacks:
|
||||
connection_type = int(container_stack.getMetaDataEntry("connection_type", "-1"))
|
||||
connection_type = int(container_stack.getMetaDataEntry("connection_type", ConnectionType.NotConnected.value))
|
||||
has_remote_connection = connection_type in [ConnectionType.NetworkConnection.value, ConnectionType.CloudConnection.value]
|
||||
if container_stack.getMetaDataEntry("hidden", False) in ["True", True]:
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue