mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-02 06:08:46 +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]:
|
async def confirm_firmware_update(description: str, fingerprint: str) -> None:
|
||||||
return raise_if_not_confirmed(
|
main = trezorui_api.confirm_value(
|
||||||
trezorui_api.confirm_firmware_update(
|
title=TR.firmware_update__title,
|
||||||
description=description, fingerprint=fingerprint
|
description=description,
|
||||||
),
|
value="",
|
||||||
"firmware_update",
|
verb=TR.buttons__install,
|
||||||
BR_CODE_OTHER,
|
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