mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 19:25:53 +08:00
Revert "Fix error"
This reverts commit 53c1c738d539b85256e670d80443cfcb1a82c74f. The code was intentional. The fix actually caused issues, as it sent data it got from the server back again
This commit is contained in:
parent
ab934d356b
commit
e53ff78704
@ -257,13 +257,13 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
if progress == 0:
|
||||
progress += 0.001
|
||||
self.setProgress(progress)
|
||||
self._setJobState(json_data["state"])
|
||||
self._updateJobState(json_data["state"])
|
||||
self.setTimeElapsed(json_data["time_elapsed"])
|
||||
self.setTimeTotal(json_data["time_total"])
|
||||
self.setJobName(json_data["name"])
|
||||
elif reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) == 404:
|
||||
self.setProgress(0) # No print job found, so there can't be progress!
|
||||
self._setJobState("")
|
||||
self._updateJobState("")
|
||||
elif "snapshot" in reply.url().toString(): # Status update from image:
|
||||
if reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) == 200:
|
||||
self._camera_image.loadFromData(reply.readAll())
|
||||
|
Loading…
x
Reference in New Issue
Block a user