mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 12:05:54 +08:00
Jobstate is reset when there is no print job
CURA-1036
This commit is contained in:
parent
9dbdd7fe7a
commit
a36157c538
@ -231,6 +231,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
|
||||
elif reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) == 404:
|
||||
self.setProgress(0) # No print job found, so there can't be progress!
|
||||
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