mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Jobstate is reset when there is no print job
CURA-1036
This commit is contained in:
parent
9dbdd7fe7a
commit
a36157c538
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue