Added models to process the data from the api results

Added code to update the UI models
This commit is contained in:
Marijn Deé 2018-11-29 17:03:11 +01:00
parent 8a72ba3cfa
commit 763291821f
3 changed files with 246 additions and 31 deletions

View file

@ -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.