Disconnect signal on deletion of CloudOutputDevice

CURA-9678
This commit is contained in:
Joey de l'Arago 2022-09-23 10:50:26 +02:00
parent c729b87f3c
commit 39e3a18bf6

View File

@ -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)