mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Added models to process the data from the api results
Added code to update the UI models
This commit is contained in:
parent
8a72ba3cfa
commit
763291821f
3 changed files with 246 additions and 31 deletions
|
@ -124,9 +124,9 @@ class CloudOutputDeviceManager(NetworkClient):
|
|||
|
||||
local_device_id = active_machine.getMetaDataEntry("um_network_key")
|
||||
if local_device_id:
|
||||
active_output_device = CuraApplication.getInstance().getOutputDeviceManager().getActiveDevice()
|
||||
active_output_device.id
|
||||
|
||||
active_output_device = self._output_device_manager.getActiveDevice()
|
||||
# We must find a match for the active machine and a cloud device
|
||||
|
||||
stored_cluster_id = active_machine.getMetaDataEntry("um_cloud_cluster_id")
|
||||
if stored_cluster_id not in self._remote_clusters.keys():
|
||||
# Currently authenticated user does not have access to stored cluster or no user is signed in.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue