1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-19 13:08:14 +00:00

test(core): visit confirm_action() menu during tests

Also, refactor `new_confirm_action_uni` a bit.

[no changelog]
This commit is contained in:
Roman Zeyde 2025-07-09 14:17:34 +03:00 committed by Roman Zeyde
parent 32215811f4
commit d47582bad6
2 changed files with 573 additions and 576 deletions

View File

@ -287,14 +287,11 @@ fn new_confirm_action_uni<T: Component + PaginateFull + MaybeTrace + 'static>(
.with_swipeup_footer(strings.footer_description) .with_swipeup_footer(strings.footer_description)
.with_vertical_pages(); .with_vertical_pages();
match extra { content = match extra {
ConfirmActionExtra::Menu { .. } | ConfirmActionExtra::ExternalMenu => { ConfirmActionExtra::ExternalMenu => content.with_menu_button().with_external_menu(),
content = content.with_menu_button(); ConfirmActionExtra::Menu { .. } => content.with_menu_button(),
} ConfirmActionExtra::Cancel => content.with_cancel_button(),
ConfirmActionExtra::Cancel => { };
content = content.with_cancel_button();
}
}
if page_counter { if page_counter {
fn footer_update_fn<T: Component + PaginateFull>( fn footer_update_fn<T: Component + PaginateFull>(

File diff suppressed because it is too large Load Diff