Fix connection type not always being seen correctly

CURA-6011
This commit is contained in:
Jaime van Kessel 2018-12-31 11:15:03 +01:00
parent fd9b29fee2
commit 1277fbabc5
2 changed files with 2 additions and 3 deletions

View file

@ -54,9 +54,8 @@ class GlobalStacksModel(ListModel):
container_stacks = ContainerRegistry.getInstance().findContainerStacks(type = "machine")
for container_stack in container_stacks:
connection_type = container_stack.getMetaDataEntry("connection_type")
connection_type = int(container_stack.getMetaDataEntry("connection_type", "-1"))
has_remote_connection = connection_type in [ConnectionType.NetworkConnection.value, ConnectionType.CloudConnection.value]
if container_stack.getMetaDataEntry("hidden", False) in ["True", True]:
continue