From 39e3a18bf6431c9631436b1e4bd6ac429f6b1a5b Mon Sep 17 00:00:00 2001 From: Joey de l'Arago Date: Fri, 23 Sep 2022 10:50:26 +0200 Subject: [PATCH] Disconnect signal on deletion of CloudOutputDevice CURA-9678 --- plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py index 692a2af160..9daf563460 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py @@ -411,3 +411,7 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice): root_url_prefix = "-staging" if self._account.is_staging else "" return f"https://digitalfactory{root_url_prefix}.ultimaker.com/app/jobs/{self.clusterData.cluster_id}" + + def __del__(self): + CuraApplication.getInstance().getBackend().backendDone.disconnect(self._resetPrintJob) + CuraApplication.getInstance().getController().getScene().sceneChanged.disconnect(self._onSceneChanged)