From 6746106608bee45a27f01de633b28ec870a8396e Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 23 Apr 2020 11:07:21 +0200 Subject: [PATCH] Also connect with cloudOutput device if it was added CURA-7055 --- .../UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py index 031e7378bf..e7f5e95874 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py @@ -128,6 +128,7 @@ class CloudOutputDeviceManager: Shows a Message informing the user of progress. """ new_devices = [] + remote_clusters_added = False for cluster_data in clusters: device = CloudOutputDevice(self._api, cluster_data) # Create a machine if we don't already have it. Do not make it the active machine. @@ -139,8 +140,11 @@ class CloudOutputDeviceManager: new_devices.append(device) elif device.getId() not in self._remote_clusters: self._remote_clusters[device.getId()] = device + remote_clusters_added = True if not new_devices: + if remote_clusters_added: + self._connectToActiveMachine() return new_devices.sort(key = lambda x: x.name.lower())