feat(core): Improve CoinJoin busy screen.

[no changelog]
pull/2588/head
Andrew Kozlik 2 years ago committed by Andrew Kozlik
parent fac4e2f157
commit b7f86ec158

@ -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."
)

@ -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

@ -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

Loading…
Cancel
Save