From a0cbef13e614d8e715fcaf4f7c1ac66ab8198918 Mon Sep 17 00:00:00 2001 From: Andrew Kozlik Date: Tue, 3 May 2022 01:47:42 +0200 Subject: [PATCH] fixup! feat(core): Show progress in GetFirmwareHash. --- core/src/apps/misc/get_firmware_hash.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/apps/misc/get_firmware_hash.py b/core/src/apps/misc/get_firmware_hash.py index e8f956486..a59c7c05c 100644 --- a/core/src/apps/misc/get_firmware_hash.py +++ b/core/src/apps/misc/get_firmware_hash.py @@ -2,6 +2,7 @@ from typing import TYPE_CHECKING from trezor import ui, wire, workflow from trezor.messages import FirmwareHash, GetFirmwareHash +from trezor.ui.layouts import draw_simple_text from trezor.utils import DISABLE_ANIMATION, firmware_hash if TYPE_CHECKING: @@ -12,7 +13,7 @@ async def get_firmware_hash(ctx: Context, msg: GetFirmwareHash) -> FirmwareHash: render_func = None if not DISABLE_ANIMATION: workflow.close_others() - ui.layouts.draw_simple_text("Please wait") + draw_simple_text("Please wait") render_func = _render_progress try: