mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Show cloud flow pop-up if machine is removed from cloud
Contributes to CL-1222
This commit is contained in:
parent
162fdad4e4
commit
fcb52dd1cf
2 changed files with 8 additions and 2 deletions
|
@ -33,6 +33,7 @@ class CloudOutputDeviceManager:
|
|||
I18N_CATALOG = i18nCatalog("cura")
|
||||
|
||||
addedCloudCluster = Signal()
|
||||
removedCloudCluster = Signal()
|
||||
|
||||
def __init__(self) -> None:
|
||||
# Persistent dict containing the remote clusters for the authenticated user.
|
||||
|
@ -85,6 +86,7 @@ class CloudOutputDeviceManager:
|
|||
removed_cluster.disconnect()
|
||||
removed_cluster.close()
|
||||
self._output_device_manager.removeOutputDevice(removed_cluster.key)
|
||||
self.removedCloudCluster.emit()
|
||||
del self._remote_clusters[removed_cluster.key]
|
||||
|
||||
# Add an output device for each new remote cluster.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue