From ed335963573950007a480c2688776025cf998654 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 30 Aug 2022 10:46:10 +0200 Subject: [PATCH] Rename device to global_stack Device was used in the rest of this class for the output device, not for a machine. This was a bit confusing CURA-8463 --- .../src/Cloud/CloudOutputDeviceManager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py index 8da82a7e3d..aa81b8f9bb 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py @@ -369,8 +369,8 @@ class CloudOutputDeviceManager: # Remove the output device from the printers for device_id in removed_device_ids: - device: Optional[GlobalStack] = self._um_cloud_printers.get(device_id, None) - if not device: + global_stack: Optional[GlobalStack] = self._um_cloud_printers.get(device_id, None) + if not global_stack: continue if device_id in output_device_manager.getOutputDeviceIds(): output_device_manager.removeOutputDevice(device_id) @@ -378,7 +378,7 @@ class CloudOutputDeviceManager: del self._remote_clusters[device_id] # Update the printer's metadata to mark it as not linked to the account - device.setMetaDataEntry(META_UM_LINKED_TO_ACCOUNT, False) + global_stack.setMetaDataEntry(META_UM_LINKED_TO_ACCOUNT, False) self._removed_printers_message.show()