mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Display data is reset upon job completion
This commit is contained in:
parent
b9f73a8eef
commit
a4117bd3be
1 changed files with 4 additions and 1 deletions
|
@ -351,8 +351,11 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||||
self.setTimeTotal(json_data["time_total"])
|
self.setTimeTotal(json_data["time_total"])
|
||||||
self.setJobName(json_data["name"])
|
self.setJobName(json_data["name"])
|
||||||
elif reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) == 404:
|
elif reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) == 404:
|
||||||
self.setProgress(0) # No print job found, so there can't be progress!
|
self.setProgress(0) # No print job found, so there can't be progress or other data.
|
||||||
self._updateJobState("")
|
self._updateJobState("")
|
||||||
|
self.setTimeElapsed(0)
|
||||||
|
self.setTimeTotal(0)
|
||||||
|
self.setJobName("")
|
||||||
elif "snapshot" in reply.url().toString(): # Status update from image:
|
elif "snapshot" in reply.url().toString(): # Status update from image:
|
||||||
if reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) == 200:
|
if reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) == 200:
|
||||||
self._camera_image.loadFromData(reply.readAll())
|
self._camera_image.loadFromData(reply.readAll())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue