mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
apps/common: experiment with ui.layout
This commit is contained in:
parent
3ea5b9c151
commit
3ae6819725
@ -7,6 +7,7 @@ if __debug__:
|
||||
signal = loop.signal()
|
||||
|
||||
|
||||
@ui.layout
|
||||
@unimport
|
||||
async def confirm(ctx, content, code=None, *args, **kwargs):
|
||||
from trezor.ui.confirm import ConfirmDialog, CONFIRMED
|
||||
@ -29,6 +30,7 @@ async def confirm(ctx, content, code=None, *args, **kwargs):
|
||||
return await waiter == CONFIRMED
|
||||
|
||||
|
||||
@ui.layout
|
||||
@unimport
|
||||
async def hold_to_confirm(ctx, content, code=None, *args, **kwargs):
|
||||
from trezor.ui.confirm import HoldToConfirmDialog, CONFIRMED
|
||||
|
@ -58,6 +58,7 @@ async def request_pin_on_display(ctx: wire.Context, code: int=None) -> str:
|
||||
raise wire.FailureError(PinCancelled, 'PIN cancelled')
|
||||
|
||||
|
||||
@ui.layout
|
||||
@unimport
|
||||
async def request_pin_on_client(ctx: wire.Context, code: int=None) -> str:
|
||||
from trezor.messages.FailureType import PinCancelled
|
||||
|
Loading…
Reference in New Issue
Block a user