From 306531f29b38a55952009bcd436c9afe159ec8e0 Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Wed, 11 Jul 2018 15:56:47 +0200 Subject: [PATCH] stellar: get public key - show on display fix --- src/apps/stellar/get_public_key.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/apps/stellar/get_public_key.py b/src/apps/stellar/get_public_key.py index a37e181d1e..679489e9b5 100644 --- a/src/apps/stellar/get_public_key.py +++ b/src/apps/stellar/get_public_key.py @@ -26,16 +26,9 @@ async def get_public_key(ctx, msg: StellarGetPublicKey): async def _show(ctx, pubkey: bytes): lines = split_address(hexlify(pubkey)) - content = Text( - "Export Stellar ID", - ui.ICON_RECEIVE, - ui.NORMAL, - "Share public account ID?", # todo only two lines are displayed - ui.MONO, - *lines, - icon_color=ui.GREEN - ) + text = Text("Export Stellar ID", ui.ICON_RECEIVE, icon_color=ui.GREEN) + text.mono(*lines) return await confirm( - ctx, content, code=ButtonRequestType.Address, cancel_style=ui.BTN_KEY + ctx, text, code=ButtonRequestType.Address, cancel_style=ui.BTN_KEY )