Merge branch 'master' of github.com:Ultimaker/Cura

This commit is contained in:
Jaime van Kessel 2020-07-07 10:47:58 +02:00
commit 82ecc95c22
No known key found for this signature in database
GPG key ID: 3710727397403C91
6 changed files with 64 additions and 26 deletions

View file

@ -120,6 +120,10 @@ class DownloadPresenter:
received += item["received"]
total += item["total"]
if total == 0: # Total download size is 0, or unknown, or there are no progress items at all.
self._progress_message.setProgress(100.0)
return
self._progress_message.setProgress(100.0 * (received / total)) # [0 .. 100] %
def _onError(self, package_id: str) -> None: