mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
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
This commit is contained in:
parent
f8ebf98df3
commit
ed33596357
1 changed files with 3 additions and 3 deletions
|
@ -369,8 +369,8 @@ class CloudOutputDeviceManager:
|
||||||
|
|
||||||
# Remove the output device from the printers
|
# Remove the output device from the printers
|
||||||
for device_id in removed_device_ids:
|
for device_id in removed_device_ids:
|
||||||
device: Optional[GlobalStack] = self._um_cloud_printers.get(device_id, None)
|
global_stack: Optional[GlobalStack] = self._um_cloud_printers.get(device_id, None)
|
||||||
if not device:
|
if not global_stack:
|
||||||
continue
|
continue
|
||||||
if device_id in output_device_manager.getOutputDeviceIds():
|
if device_id in output_device_manager.getOutputDeviceIds():
|
||||||
output_device_manager.removeOutputDevice(device_id)
|
output_device_manager.removeOutputDevice(device_id)
|
||||||
|
@ -378,7 +378,7 @@ class CloudOutputDeviceManager:
|
||||||
del self._remote_clusters[device_id]
|
del self._remote_clusters[device_id]
|
||||||
|
|
||||||
# Update the printer's metadata to mark it as not linked to the account
|
# 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()
|
self._removed_printers_message.show()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue