1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-04 21:48:17 +00:00

fixup! refactor(core): model_r confirm_summary

This commit is contained in:
obrusvit 2024-12-02 18:28:00 +01:00
parent b1850b904a
commit 61448aad34

View File

@ -679,10 +679,11 @@ extern "C" fn new_confirm_summary(n_args: usize, args: *const Obj, kwargs: *mut
}
// button layouts and actions
let verb_cancel: TString = verb_cancel.unwrap_or(TString::empty());
let btns_summary_page = move |has_pages_after: bool| -> (ButtonLayout, ButtonActions) {
// if there are no info pages, the right button is not needed
// if verb_cancel is "^", the left button is an arrow pointing up
let left_btn = verb_cancel.map(ButtonDetails::from_text_possible_icon);
let left_btn = Some(ButtonDetails::from_text_possible_icon(verb_cancel));
let right_btn = has_pages_after.then(|| {
ButtonDetails::text("i".into())
.with_fixed_width(theme::BUTTON_ICON_WIDTH)