mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-17 03:37:48 -06:00
Remove unused "has_cloud_connection" variable
CURA-7436
This commit is contained in:
parent
252b993169
commit
4e930b4d52
1 changed files with 0 additions and 3 deletions
|
@ -58,12 +58,10 @@ class GlobalStacksModel(ListModel):
|
||||||
container_stacks = CuraContainerRegistry.getInstance().findContainerStacks(type="machine")
|
container_stacks = CuraContainerRegistry.getInstance().findContainerStacks(type="machine")
|
||||||
for container_stack in container_stacks:
|
for container_stack in container_stacks:
|
||||||
has_remote_connection = False
|
has_remote_connection = False
|
||||||
has_cloud_connection = False
|
|
||||||
|
|
||||||
for connection_type in container_stack.configuredConnectionTypes:
|
for connection_type in container_stack.configuredConnectionTypes:
|
||||||
has_remote_connection |= connection_type in [ConnectionType.NetworkConnection.value,
|
has_remote_connection |= connection_type in [ConnectionType.NetworkConnection.value,
|
||||||
ConnectionType.CloudConnection.value]
|
ConnectionType.CloudConnection.value]
|
||||||
has_cloud_connection |= connection_type == ConnectionType.CloudConnection.value
|
|
||||||
|
|
||||||
if parseBool(container_stack.getMetaDataEntry("hidden", False)):
|
if parseBool(container_stack.getMetaDataEntry("hidden", False)):
|
||||||
continue
|
continue
|
||||||
|
@ -81,7 +79,6 @@ class GlobalStacksModel(ListModel):
|
||||||
items.append({"name": device_name,
|
items.append({"name": device_name,
|
||||||
"id": container_stack.getId(),
|
"id": container_stack.getId(),
|
||||||
"hasRemoteConnection": has_remote_connection,
|
"hasRemoteConnection": has_remote_connection,
|
||||||
"hasCloudConnection": has_cloud_connection,
|
|
||||||
"metadata": container_stack.getMetaData().copy(),
|
"metadata": container_stack.getMetaData().copy(),
|
||||||
"discoverySource": section_name,
|
"discoverySource": section_name,
|
||||||
"removalWarning": removal_warning})
|
"removalWarning": removal_warning})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue