1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 14:28:07 +00:00

feat(core): Improve CoinJoin busy screen.

[no changelog]
This commit is contained in:
Andrew Kozlik 2022-10-24 19:05:29 +02:00 committed by Andrew Kozlik
parent fac4e2f157
commit b7f86ec158
3 changed files with 15 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import storage.cache import storage.cache
from trezor import loop, ui from trezor import loop, ui
from trezor.ui.layouts import draw_simple_text from trezor.ui.layouts import show_coinjoin
from apps.base import busy_expiry_ms, set_homescreen from apps.base import busy_expiry_ms, set_homescreen
@ -24,6 +24,4 @@ class Busyscreen(HomescreenBase):
raise ui.Result(None) raise ui.Result(None)
def do_render(self) -> None: def do_render(self) -> None:
draw_simple_text( show_coinjoin()
"Please wait", "CoinJoin in progress.\n\nDo not disconnect your\nTrezor."
)

View File

@ -71,6 +71,7 @@ __all__ = (
"confirm_modify_output", "confirm_modify_output",
"confirm_modify_fee", "confirm_modify_fee",
"confirm_coinjoin", "confirm_coinjoin",
"show_coinjoin",
"show_popup", "show_popup",
"draw_simple_text", "draw_simple_text",
"request_passphrase_on_device", "request_passphrase_on_device",
@ -1021,6 +1022,14 @@ async def confirm_coinjoin(
) )
def show_coinjoin() -> None:
text = Text("Please wait", ui.ICON_CONFIG, ui.RED)
text.normal("CoinJoin in progress.")
text.br()
text.bold("Do not disconnect your Trezor.")
ui.draw_simple(text)
# TODO cleanup @ redesign # TODO cleanup @ redesign
async def confirm_sign_identity( async def confirm_sign_identity(
ctx: wire.GenericContext, proto: str, identity: str, challenge_visual: str | None ctx: wire.GenericContext, proto: str, identity: str, challenge_visual: str | None

View File

@ -935,6 +935,10 @@ async def confirm_coinjoin(
) )
def show_coinjoin() -> None:
log.error(__name__, "show_coinjoin not implemented")
# TODO cleanup @ redesign # TODO cleanup @ redesign
async def confirm_sign_identity( async def confirm_sign_identity(
ctx: wire.GenericContext, proto: str, identity: str, challenge_visual: str | None ctx: wire.GenericContext, proto: str, identity: str, challenge_visual: str | None