From 9aef692082ad244870ee311b4ee12534a1bfa5a6 Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Fri, 22 Mar 2019 14:52:11 +0100 Subject: [PATCH] Emit added or removed clusters Useful to whomever is listening in on those signals to know _what_ was added or removed. Contributes to CL-1267 --- .../UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py index e081beb99c..67245eb357 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py @@ -86,7 +86,7 @@ class CloudOutputDeviceManager: removed_cluster.disconnect() removed_cluster.close() self._output_device_manager.removeOutputDevice(removed_cluster.key) - self.removedCloudCluster.emit() + self.removedCloudCluster.emit(removed_cluster) del self._remote_clusters[removed_cluster.key] # Add an output device for each new remote cluster. @@ -94,7 +94,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() + self.addedCloudCluster.emit(added_cluster) for device, cluster in updates: device.clusterData = cluster