1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

seed: add display.refresh to seed loading waiting screen

This commit is contained in:
Pavol Rusnak 2019-01-14 17:42:39 +01:00
parent d2aef38bd8
commit 4ee69f1e3f
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -72,11 +72,13 @@ async def get_keychain(ctx: wire.Context, namespaces: list) -> Keychain:
def _start_bip39_progress(): def _start_bip39_progress():
ui.display.clear() ui.display.clear()
ui.header("Please wait") ui.header("Please wait")
ui.display.refresh()
def _render_bip39_progress(progress: int, total: int): def _render_bip39_progress(progress: int, total: int):
p = int(1000 * progress / total) p = int(1000 * progress / total)
ui.display.loader(p, 18, ui.WHITE, ui.BG) ui.display.loader(p, 18, ui.WHITE, ui.BG)
ui.display.refresh()
def derive_node_without_passphrase( def derive_node_without_passphrase(