Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David Von Edge
dbpInstaller
Commits
91cf7b82
Commit
91cf7b82
authored
Jan 09, 2022
by
sebt3
Browse files
Fix download not finishing
parent
38c209f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
dbpinstaller/ui/delegate.py
View file @
91cf7b82
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment