mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
"none" as state is now sent as empty string
This commit is contained in:
parent
3c2836f3f5
commit
fd36f09b29
1 changed files with 5 additions and 1 deletions
|
@ -436,7 +436,11 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
if progress == 0:
|
||||
progress += 0.001
|
||||
self.setProgress(progress * 100)
|
||||
self._updateJobState(json_data["state"])
|
||||
|
||||
state = json_data["state"]
|
||||
if state == "none":
|
||||
state = ""
|
||||
self._updateJobState(state)
|
||||
self.setTimeElapsed(json_data["time_elapsed"])
|
||||
self.setTimeTotal(json_data["time_total"])
|
||||
self.setJobName(json_data["name"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue