From 5aff6218d5ac0a7fb6e38492b17c70b915a1f195 Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Fri, 29 May 2020 14:02:36 +0200 Subject: [PATCH] Add the offline cloud printers in Cura when they are discovered CURA-7458 --- .../UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py index 84698ff371..2c33efd965 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py @@ -98,9 +98,10 @@ class CloudOutputDeviceManager: """Callback for when the request for getting the clusters is finished.""" new_clusters = [] + all_clusters = {c.cluster_id: c for c in clusters} # type: Dict[str, CloudClusterResponse] online_clusters = {c.cluster_id: c for c in clusters if c.is_online} # type: Dict[str, CloudClusterResponse] - for device_id, cluster_data in online_clusters.items(): + for device_id, cluster_data in all_clusters.items(): if device_id not in self._remote_clusters: new_clusters.append(cluster_data)