mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-14 07:06:05 +00:00
fix(core): use smaller button for upgrade cancellation
This commit is contained in:
parent
e15c39bb57
commit
41096b5ffd
1
core/.changelog.d/4771.fixed
Normal file
1
core/.changelog.d/4771.fixed
Normal file
@ -0,0 +1 @@
|
||||
[T2T1] Fixed upgrade confirmation text overflow.
|
@ -1407,13 +1407,24 @@ def confirm_set_new_pin(
|
||||
)
|
||||
|
||||
|
||||
def confirm_firmware_update(description: str, fingerprint: str) -> Awaitable[None]:
|
||||
return raise_if_not_confirmed(
|
||||
trezorui_api.confirm_firmware_update(
|
||||
description=description, fingerprint=fingerprint
|
||||
),
|
||||
"firmware_update",
|
||||
BR_CODE_OTHER,
|
||||
async def confirm_firmware_update(description: str, fingerprint: str) -> None:
|
||||
main = trezorui_api.confirm_value(
|
||||
title=TR.firmware_update__title,
|
||||
description=description,
|
||||
value="",
|
||||
verb=TR.buttons__install,
|
||||
info=True,
|
||||
)
|
||||
info = trezorui_api.show_info_with_cancel(
|
||||
title=TR.firmware_update__title_fingerprint,
|
||||
items=(("", fingerprint),),
|
||||
chunkify=True,
|
||||
)
|
||||
await with_info(
|
||||
main,
|
||||
info,
|
||||
br_name="firmware_update",
|
||||
br_code=BR_CODE_OTHER,
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user