mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-17 19:00:58 +00:00
fix(core): completely repaint layouts before showing them in a loop
[no changelog]
This commit is contained in:
parent
6c4e0eec26
commit
8a6934e844
@ -495,6 +495,7 @@ async def show_address(
|
|||||||
br_code,
|
br_code,
|
||||||
pages=layout.page_count(),
|
pages=layout.page_count(),
|
||||||
)
|
)
|
||||||
|
layout.request_complete_repaint()
|
||||||
result = await ctx_wait(layout)
|
result = await ctx_wait(layout)
|
||||||
|
|
||||||
# User confirmed with middle button.
|
# User confirmed with middle button.
|
||||||
@ -1106,6 +1107,7 @@ async def confirm_modify_output(
|
|||||||
ButtonRequestType.ConfirmOutput,
|
ButtonRequestType.ConfirmOutput,
|
||||||
address_layout.page_count(),
|
address_layout.page_count(),
|
||||||
)
|
)
|
||||||
|
address_layout.request_complete_repaint()
|
||||||
await raise_if_not_confirmed(ctx_wait(address_layout))
|
await raise_if_not_confirmed(ctx_wait(address_layout))
|
||||||
|
|
||||||
if send_button_request:
|
if send_button_request:
|
||||||
@ -1115,6 +1117,7 @@ async def confirm_modify_output(
|
|||||||
ButtonRequestType.ConfirmOutput,
|
ButtonRequestType.ConfirmOutput,
|
||||||
modify_layout.page_count(),
|
modify_layout.page_count(),
|
||||||
)
|
)
|
||||||
|
modify_layout.request_complete_repaint()
|
||||||
result = await ctx_wait(modify_layout)
|
result = await ctx_wait(modify_layout)
|
||||||
|
|
||||||
if result is CONFIRMED:
|
if result is CONFIRMED:
|
||||||
|
@ -429,16 +429,18 @@ async def show_address(
|
|||||||
details_title = "RECEIVING TO"
|
details_title = "RECEIVING TO"
|
||||||
elif details_title is None:
|
elif details_title is None:
|
||||||
details_title = title
|
details_title = title
|
||||||
while True:
|
|
||||||
layout = RustLayout(
|
layout = RustLayout(
|
||||||
trezorui2.confirm_address(
|
trezorui2.confirm_address(
|
||||||
title=title,
|
title=title,
|
||||||
data=address,
|
data=address,
|
||||||
description=network or "",
|
description=network or "",
|
||||||
extra=None,
|
extra=None,
|
||||||
chunkify=chunkify,
|
chunkify=chunkify,
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
while True:
|
||||||
if send_button_request:
|
if send_button_request:
|
||||||
send_button_request = False
|
send_button_request = False
|
||||||
await button_request(
|
await button_request(
|
||||||
@ -446,6 +448,7 @@ async def show_address(
|
|||||||
br_code,
|
br_code,
|
||||||
pages=layout.page_count(),
|
pages=layout.page_count(),
|
||||||
)
|
)
|
||||||
|
layout.request_complete_repaint()
|
||||||
result = await ctx_wait(layout)
|
result = await ctx_wait(layout)
|
||||||
|
|
||||||
# User pressed right button.
|
# User pressed right button.
|
||||||
@ -1059,6 +1062,7 @@ async def confirm_modify_output(
|
|||||||
ButtonRequestType.ConfirmOutput,
|
ButtonRequestType.ConfirmOutput,
|
||||||
address_layout.page_count(),
|
address_layout.page_count(),
|
||||||
)
|
)
|
||||||
|
address_layout.request_complete_repaint()
|
||||||
await raise_if_not_confirmed(ctx_wait(address_layout))
|
await raise_if_not_confirmed(ctx_wait(address_layout))
|
||||||
|
|
||||||
if send_button_request:
|
if send_button_request:
|
||||||
@ -1068,6 +1072,7 @@ async def confirm_modify_output(
|
|||||||
ButtonRequestType.ConfirmOutput,
|
ButtonRequestType.ConfirmOutput,
|
||||||
modify_layout.page_count(),
|
modify_layout.page_count(),
|
||||||
)
|
)
|
||||||
|
modify_layout.request_complete_repaint()
|
||||||
result = await ctx_wait(modify_layout)
|
result = await ctx_wait(modify_layout)
|
||||||
|
|
||||||
if result is CONFIRMED:
|
if result is CONFIRMED:
|
||||||
|
Loading…
Reference in New Issue
Block a user