mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 01:35:59 +08:00
Decreased the progress added when 0 was returned
Turned out that by adding 0.1, it started at 10%
This commit is contained in:
parent
cadf5d85b7
commit
ac4dbe2304
@ -190,7 +190,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
progress = json.loads(bytes(reply.readAll()).decode("utf-8"))["progress"]
|
||||
## If progress is 0 add a bit so another print can't be sent.
|
||||
if progress == 0:
|
||||
progress += 0.1
|
||||
progress += 0.001
|
||||
self.setProgress(progress)
|
||||
elif reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) == 404:
|
||||
self.setProgress(0) # No print job found, so there can't be progress!
|
||||
|
Loading…
x
Reference in New Issue
Block a user