mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-05 23:04:30 +08:00
Use the um_cloud_cluster_id metadata when removing the cloud printer
CURA-7457
This commit is contained in:
parent
09ff6b72ed
commit
be9aec624a
@ -300,6 +300,6 @@ class CloudOutputDeviceManager:
|
||||
:return: None
|
||||
"""
|
||||
if isinstance(container, GlobalStack):
|
||||
printer_clusters_map = {cluster.name: cluster_id for cluster_id, cluster in self._remote_clusters.items()}
|
||||
if container.name in printer_clusters_map:
|
||||
del self._remote_clusters[printer_clusters_map[container.name]]
|
||||
container_cluster_id = container.getMetaDataEntry(self.META_CLUSTER_ID, None)
|
||||
if container_cluster_id in self._remote_clusters.keys():
|
||||
del self._remote_clusters[container_cluster_id]
|
||||
|
Loading…
x
Reference in New Issue
Block a user