mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +02:00
Don't show 50% duplicated progress info
50% would show twice in the conversion progress due to an overlap in conversion progress values. The doc_to_pixels would be from 0-50% and the pixels_to_pdf from 50%-100%. This commit makes the first part go from 0 to 49% instead. Fixes #715
This commit is contained in:
parent
eb19926f9c
commit
e4a5dbce46
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class IsolationProvider(ABC):
|
||||||
n_pages = read_int(p.stdout)
|
n_pages = read_int(p.stdout)
|
||||||
if n_pages == 0 or n_pages > errors.MAX_PAGES:
|
if n_pages == 0 or n_pages > errors.MAX_PAGES:
|
||||||
raise errors.MaxPagesException()
|
raise errors.MaxPagesException()
|
||||||
percentage_per_page = 50.0 / n_pages
|
percentage_per_page = 49.0 / n_pages
|
||||||
|
|
||||||
for page in range(1, n_pages + 1):
|
for page in range(1, n_pages + 1):
|
||||||
text = f"Converting page {page}/{n_pages} to pixels"
|
text = f"Converting page {page}/{n_pages} to pixels"
|
||||||
|
|
Loading…
Reference in a new issue