mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Also connect with cloudOutput device if it was added
CURA-7055
This commit is contained in:
parent
7c7c1ad96c
commit
6746106608
1 changed files with 4 additions and 0 deletions
|
@ -128,6 +128,7 @@ class CloudOutputDeviceManager:
|
||||||
Shows a Message informing the user of progress.
|
Shows a Message informing the user of progress.
|
||||||
"""
|
"""
|
||||||
new_devices = []
|
new_devices = []
|
||||||
|
remote_clusters_added = False
|
||||||
for cluster_data in clusters:
|
for cluster_data in clusters:
|
||||||
device = CloudOutputDevice(self._api, cluster_data)
|
device = CloudOutputDevice(self._api, cluster_data)
|
||||||
# Create a machine if we don't already have it. Do not make it the active machine.
|
# 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)
|
new_devices.append(device)
|
||||||
elif device.getId() not in self._remote_clusters:
|
elif device.getId() not in self._remote_clusters:
|
||||||
self._remote_clusters[device.getId()] = device
|
self._remote_clusters[device.getId()] = device
|
||||||
|
remote_clusters_added = True
|
||||||
|
|
||||||
if not new_devices:
|
if not new_devices:
|
||||||
|
if remote_clusters_added:
|
||||||
|
self._connectToActiveMachine()
|
||||||
return
|
return
|
||||||
|
|
||||||
new_devices.sort(key = lambda x: x.name.lower())
|
new_devices.sort(key = lambda x: x.name.lower())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue