mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 20:11:00 +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)
|
content = ConfirmContent(self.action, self.app_id)
|
||||||
dialog = HoldToConfirmDialog(content)
|
dialog = HoldToConfirmDialog(content)
|
||||||
ui.display.clear()
|
|
||||||
|
|
||||||
return await dialog == CONFIRMED
|
return await dialog == CONFIRMED
|
||||||
|
|
||||||
|
@ -58,7 +58,6 @@ async def recovery_device(ctx, msg):
|
|||||||
async def request_wordcount(ctx):
|
async def request_wordcount(ctx):
|
||||||
await ctx.call(ButtonRequest(code=Other), ButtonAck)
|
await ctx.call(ButtonRequest(code=Other), ButtonAck)
|
||||||
|
|
||||||
ui.display.clear()
|
|
||||||
content = Text('Device recovery', ui.ICON_RECOVERY, 'Number of words?')
|
content = Text('Device recovery', ui.ICON_RECOVERY, 'Number of words?')
|
||||||
select = WordSelector(content)
|
select = WordSelector(content)
|
||||||
count = await select
|
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]]
|
lines = ['%2d. %s' % (wi + 1, word) for wi, word in pages[page]]
|
||||||
content = Text('Recovery seed', ui.ICON_RESET, ui.MONO, *lines)
|
content = Text('Recovery seed', ui.ICON_RESET, ui.MONO, *lines)
|
||||||
content = Scrollpage(content, page, page_count)
|
content = Scrollpage(content, page, page_count)
|
||||||
ui.display.clear()
|
|
||||||
|
|
||||||
if page + 1 == page_count:
|
if page + 1 == page_count:
|
||||||
await HoldToConfirmDialog(content)
|
await HoldToConfirmDialog(content)
|
||||||
|
Loading…
Reference in New Issue
Block a user