From ac4dbe2304194bcfa4250443030f85ffd6fa20ad Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 14 Jun 2016 16:01:06 +0200 Subject: [PATCH] Decreased the progress added when 0 was returned Turned out that by adding 0.1, it started at 10% --- NetworkPrinterOutputDevice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NetworkPrinterOutputDevice.py b/NetworkPrinterOutputDevice.py index c897df8a60..712c48a865 100644 --- a/NetworkPrinterOutputDevice.py +++ b/NetworkPrinterOutputDevice.py @@ -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!