mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-04 17:55:12 +08:00
"none" as state is now sent as empty string
This commit is contained in:
parent
3c2836f3f5
commit
fd36f09b29
@ -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…
x
Reference in New Issue
Block a user