mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-30 12:05:09 +08:00
Add documentation for _onDiscoveredDeviceRemoved
This commit is contained in:
parent
7f9984cd16
commit
45e7d15c80
@ -249,7 +249,6 @@ class CloudOutputDeviceManager:
|
|||||||
|
|
||||||
message.finalize(new_devices_added, new_output_devices)
|
message.finalize(new_devices_added, new_output_devices)
|
||||||
|
|
||||||
|
|
||||||
def _updateOnlinePrinters(self, printer_responses: Dict[str, CloudClusterResponse]) -> None:
|
def _updateOnlinePrinters(self, printer_responses: Dict[str, CloudClusterResponse]) -> None:
|
||||||
"""
|
"""
|
||||||
Update the metadata of the printers to store whether they are online or not.
|
Update the metadata of the printers to store whether they are online or not.
|
||||||
@ -368,6 +367,7 @@ class CloudOutputDeviceManager:
|
|||||||
self._removed_printers_message.show()
|
self._removed_printers_message.show()
|
||||||
|
|
||||||
def _onDiscoveredDeviceRemoved(self, device_id: str) -> None:
|
def _onDiscoveredDeviceRemoved(self, device_id: str) -> None:
|
||||||
|
""" Remove the CloudOutputDevices for printers that are offline"""
|
||||||
device: Optional[CloudOutputDevice] = self._remote_clusters.pop(device_id, None)
|
device: Optional[CloudOutputDevice] = self._remote_clusters.pop(device_id, None)
|
||||||
if not device:
|
if not device:
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user