mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-02 02:38:30 +02:00
fixed extraction progressbar not working
This commit is contained in:
parent
f92127a07c
commit
dddab9f08d
1 changed files with 2 additions and 2 deletions
|
@ -54,13 +54,13 @@ class Game:
|
||||||
except StopIteration as e: return e.value
|
except StopIteration as e: return e.value
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
yield Progress(determinate=True, max_step=100)
|
||||||
|
|
||||||
for gen_data in gen:
|
for gen_data in gen:
|
||||||
yield Progress(
|
yield Progress(
|
||||||
description=_("EXTRACTING", " - ", gen_data["percentage"], "% - (", "ESTIMATED_TIME_REMAINING", ": "
|
description=_("EXTRACTING", " - ", gen_data["percentage"], "% - (", "ESTIMATED_TIME_REMAINING", ": "
|
||||||
f'{gen_data["estimation"] if gen_data["estimation"] is not None else "-:--"})'),
|
f'{gen_data["estimation"] if gen_data["estimation"] is not None else "-:--"})'),
|
||||||
max_step=100,
|
|
||||||
set_step=gen_data["percentage"],
|
set_step=gen_data["percentage"],
|
||||||
determinate=True
|
|
||||||
)
|
)
|
||||||
try: next(gen)
|
try: next(gen)
|
||||||
except StopIteration as e:
|
except StopIteration as e:
|
||||||
|
|
Loading…
Reference in a new issue