mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-06 07:14:20 +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
|
:return: None
|
||||||
"""
|
"""
|
||||||
if isinstance(container, GlobalStack):
|
if isinstance(container, GlobalStack):
|
||||||
printer_clusters_map = {cluster.name: cluster_id for cluster_id, cluster in self._remote_clusters.items()}
|
container_cluster_id = container.getMetaDataEntry(self.META_CLUSTER_ID, None)
|
||||||
if container.name in printer_clusters_map:
|
if container_cluster_id in self._remote_clusters.keys():
|
||||||
del self._remote_clusters[printer_clusters_map[container.name]]
|
del self._remote_clusters[container_cluster_id]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user