mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:39:01 +08:00
Remove unused "has_cloud_connection" variable
CURA-7436
This commit is contained in:
parent
252b993169
commit
4e930b4d52
@ -58,12 +58,10 @@ class GlobalStacksModel(ListModel):
|
||||
container_stacks = CuraContainerRegistry.getInstance().findContainerStacks(type="machine")
|
||||
for container_stack in container_stacks:
|
||||
has_remote_connection = False
|
||||
has_cloud_connection = False
|
||||
|
||||
for connection_type in container_stack.configuredConnectionTypes:
|
||||
has_remote_connection |= connection_type in [ConnectionType.NetworkConnection.value,
|
||||
ConnectionType.CloudConnection.value]
|
||||
has_cloud_connection |= connection_type == ConnectionType.CloudConnection.value
|
||||
|
||||
if parseBool(container_stack.getMetaDataEntry("hidden", False)):
|
||||
continue
|
||||
@ -81,7 +79,6 @@ class GlobalStacksModel(ListModel):
|
||||
items.append({"name": device_name,
|
||||
"id": container_stack.getId(),
|
||||
"hasRemoteConnection": has_remote_connection,
|
||||
"hasCloudConnection": has_cloud_connection,
|
||||
"metadata": container_stack.getMetaData().copy(),
|
||||
"discoverySource": section_name,
|
||||
"removalWarning": removal_warning})
|
||||
|
Loading…
x
Reference in New Issue
Block a user