From f61d7fffa80d2fd59965949e5b3e3c4d18360ca3 Mon Sep 17 00:00:00 2001 From: matejcik Date: Fri, 16 Apr 2021 12:15:47 +0200 Subject: [PATCH] fix(core): fix top-level imports in apps.common.passphrase --- core/src/apps/common/passphrase.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/core/src/apps/common/passphrase.py b/core/src/apps/common/passphrase.py index 9d61b46cd..bcdb6e6ec 100644 --- a/core/src/apps/common/passphrase.py +++ b/core/src/apps/common/passphrase.py @@ -3,11 +3,8 @@ from micropython import const import storage.device from trezor import wire, workflow from trezor.messages import ButtonRequestType -from trezor.ui import ICON_CONFIG, draw_simple -from trezor.ui.components.tt.text import Text from . import button_request -from .confirm import require_confirm _MAX_PASSPHRASE_LEN = const(50) @@ -40,6 +37,10 @@ async def _request_from_user(ctx: wire.Context) -> str: async def _request_on_host(ctx: wire.Context) -> str: from trezor.messages.PassphraseAck import PassphraseAck from trezor.messages.PassphraseRequest import PassphraseRequest + from trezor.ui import ICON_CONFIG + from trezor.ui.components.tt.text import Text + + from .confirm import require_confirm _entry_dialog() @@ -89,6 +90,9 @@ async def _request_on_device(ctx: wire.Context) -> str: def _entry_dialog() -> None: + from trezor.ui import ICON_CONFIG, draw_simple + from trezor.ui.components.tt.text import Text + text = Text("Passphrase entry", ICON_CONFIG) text.normal("Please type your", "passphrase on the", "connected host.") draw_simple(text)