Commit 91cf7b82 authored by sebt3's avatar sebt3
Browse files

Fix download not finishing

parent 38c209f3
......@@ -33,7 +33,7 @@ class UiInstallerDelegate(BaseInstallerDelegate):
percentage = (chunk_number * chunk_size) / total_size
percentage_str = "{:.2%}".format(percentage)
progress_str = "[Downloading ({})] {}".format(percentage_str, name)
if chunk_size == total_size:
if (chunk_number * chunk_size) >= total_size or (chunk_size == total_size and total_size == -1):
# done
self.ui.end_progress()
else:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment