1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-19 12:58:13 +00:00

fix(core/ui): T3T1 confirm_action: hold implies prompt_screen

This commit is contained in:
Martin Milata 2024-06-05 23:36:41 +02:00 committed by matejcik
parent d58dac03a4
commit e0dfa15e89

View File

@ -194,6 +194,7 @@ pub fn new_confirm_action_simple<T: Component + Paginate + MaybeTrace + 'static>
content_intro = content_intro.with_subtitle(subtitle);
}
let prompt_screen = prompt_screen.or_else(|| hold.then_some(title));
let prompt_pages: usize = prompt_screen.is_some().into();
let content_intro = content_intro
.map(move |msg| match msg {