mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
use right plural in variable name
This commit is contained in:
parent
172e003e1b
commit
fd4d1113b9
1 changed files with 8 additions and 3 deletions
|
@ -81,14 +81,14 @@ class CloudOutputDeviceManager(NetworkClient):
|
||||||
return
|
return
|
||||||
|
|
||||||
known_cluster_ids = set(self._remote_clusters.keys())
|
known_cluster_ids = set(self._remote_clusters.keys())
|
||||||
found_clusters_ids = set(found_clusters.keys())
|
found_cluster_ids = set(found_clusters.keys())
|
||||||
|
|
||||||
# Add an output device for each new remote cluster.
|
# Add an output device for each new remote cluster.
|
||||||
for cluster_id in found_clusters_ids.difference(known_cluster_ids):
|
for cluster_id in found_cluster_ids.difference(known_cluster_ids):
|
||||||
self._addCloudOutputDevice(found_clusters[cluster_id])
|
self._addCloudOutputDevice(found_clusters[cluster_id])
|
||||||
|
|
||||||
# Remove output devices that are gone
|
# Remove output devices that are gone
|
||||||
for cluster_id in known_cluster_ids.difference(found_clusters_ids):
|
for cluster_id in known_cluster_ids.difference(found_cluster_ids):
|
||||||
self._removeCloudOutputDevice(found_clusters[cluster_id])
|
self._removeCloudOutputDevice(found_clusters[cluster_id])
|
||||||
|
|
||||||
# For testing we add a dummy device:
|
# For testing we add a dummy device:
|
||||||
|
@ -123,6 +123,11 @@ class CloudOutputDeviceManager(NetworkClient):
|
||||||
if not active_machine:
|
if not active_machine:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
local_device_id = active_machine.getMetaDataEntry("um_network_key")
|
||||||
|
if local_device_id:
|
||||||
|
active_output_device = CuraApplication.getInstance().getOutputDeviceManager().getActiveDevice()
|
||||||
|
active_output_device.id
|
||||||
|
|
||||||
stored_cluster_id = active_machine.getMetaDataEntry("um_cloud_cluster_id")
|
stored_cluster_id = active_machine.getMetaDataEntry("um_cloud_cluster_id")
|
||||||
if stored_cluster_id not in self._remote_clusters.keys():
|
if stored_cluster_id not in self._remote_clusters.keys():
|
||||||
# Currently authenticated user does not have access to stored cluster or no user is signed in.
|
# Currently authenticated user does not have access to stored cluster or no user is signed in.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue