From d022672bcf2b153e79a5f693d83ff95ee6d8d29b Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Tue, 5 Feb 2019 16:49:54 +0100 Subject: [PATCH] Add signal to CloudOutputDeviceManager for added cloud device Contributes to CL-1222 --- .../UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py index 69147bc17f..8c9600cfb7 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py @@ -32,6 +32,8 @@ class CloudOutputDeviceManager: # The translation catalog for this device. I18N_CATALOG = i18nCatalog("cura") + addedCloudCluster = Signal() + def __init__(self) -> None: # Persistent dict containing the remote clusters for the authenticated user. self._remote_clusters = {} # type: Dict[str, CloudOutputDevice] @@ -90,6 +92,7 @@ class CloudOutputDeviceManager: for added_cluster in added_clusters: device = CloudOutputDevice(self._api, added_cluster) self._remote_clusters[added_cluster.cluster_id] = device + self.addedCloudCluster.emit() for device, cluster in updates: device.clusterData = cluster