mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-31 18:40:56 +00:00
src/apps: rely more on ui.layout clear
This commit is contained in:
parent
20f1644ef9
commit
fd95bb482e
@ -473,7 +473,6 @@ class ConfirmState:
|
||||
|
||||
content = ConfirmContent(self.action, self.app_id)
|
||||
dialog = HoldToConfirmDialog(content)
|
||||
ui.display.clear()
|
||||
|
||||
return await dialog == CONFIRMED
|
||||
|
||||
|
@ -58,7 +58,6 @@ async def recovery_device(ctx, msg):
|
||||
async def request_wordcount(ctx):
|
||||
await ctx.call(ButtonRequest(code=Other), ButtonAck)
|
||||
|
||||
ui.display.clear()
|
||||
content = Text('Device recovery', ui.ICON_RECOVERY, 'Number of words?')
|
||||
select = WordSelector(content)
|
||||
count = await select
|
||||
|
@ -165,7 +165,6 @@ async def show_mnemonic_page(page: int, page_count: int, pages: list):
|
||||
lines = ['%2d. %s' % (wi + 1, word) for wi, word in pages[page]]
|
||||
content = Text('Recovery seed', ui.ICON_RESET, ui.MONO, *lines)
|
||||
content = Scrollpage(content, page, page_count)
|
||||
ui.display.clear()
|
||||
|
||||
if page + 1 == page_count:
|
||||
await HoldToConfirmDialog(content)
|
||||
|
Loading…
Reference in New Issue
Block a user