mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 01:26:01 +08:00
Added JobName to network output device
CURA-1036
This commit is contained in:
parent
a1c9f055c8
commit
d6aacf24b9
@ -260,7 +260,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||||||
self._updateJobState(json_data["state"])
|
self._updateJobState(json_data["state"])
|
||||||
self.setTimeElapsed(json_data["time_elapsed"])
|
self.setTimeElapsed(json_data["time_elapsed"])
|
||||||
self.setTimeTotal(json_data["time_total"])
|
self.setTimeTotal(json_data["time_total"])
|
||||||
|
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!
|
||||||
self._updateJobState("")
|
self._updateJobState("")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user