mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Check before removing a printer
This commit is contained in:
parent
b32d6812db
commit
3a733bb0a3
1 changed files with 2 additions and 1 deletions
|
@ -92,6 +92,7 @@ class CloudOutputDeviceManager:
|
||||||
# \param cluster: The cluster that was removed
|
# \param cluster: The cluster that was removed
|
||||||
def _removeCloudOutputDevice(self, cluster: CloudCluster):
|
def _removeCloudOutputDevice(self, cluster: CloudCluster):
|
||||||
self._output_device_manager.removeOutputDevice(cluster.cluster_id)
|
self._output_device_manager.removeOutputDevice(cluster.cluster_id)
|
||||||
|
if cluster.cluster_id in self._remote_clusters:
|
||||||
del self._remote_clusters[cluster.cluster_id]
|
del self._remote_clusters[cluster.cluster_id]
|
||||||
|
|
||||||
## Callback for when the active machine was changed by the user.
|
## Callback for when the active machine was changed by the user.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue