Fetch preview image from cloud for monitor page.

part of CURA-7147
This commit is contained in:
Remco Burema 2020-04-16 12:18:49 +02:00
parent 52f01a71c3
commit 006822334c
No known key found for this signature in database
GPG key ID: 215C49431D43F98C
3 changed files with 22 additions and 4 deletions

View file

@ -1,4 +1,4 @@
# Copyright (c) 2019 Ultimaker B.V.
# Copyright (c) 2020 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
import os
from time import time
@ -330,6 +330,8 @@ class UltimakerNetworkedPrinterOutputDevice(NetworkedPrinterOutputDevice):
self._updateAssignedPrinter(model, remote_job.printer_uuid)
if remote_job.assigned_to:
self._updateAssignedPrinter(model, remote_job.assigned_to)
if remote_job.preview_url:
model.loadPreviewImageFromUrl(remote_job.preview_url)
return model
## Updates the printer assignment for the given print job model.