1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-26 07:11:25 +00:00

fix(core/ui): don't swipe left if there is no menu

This commit is contained in:
Ioan Bizău 2024-12-06 13:42:32 +01:00 committed by Ioan Bizău
parent a0bd4860ca
commit e6802bdd09
2 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1 @@
[T3T1] Fix swiping into empty page.

View File

@ -248,7 +248,6 @@ fn new_confirm_action_uni<T: Component + Paginate + MaybeTrace + 'static>(
let mut content = Frame::left_aligned(strings.title, content)
.with_margin(frame_margin)
.with_swipe(Direction::Up, SwipeSettings::default())
.with_swipe(Direction::Left, SwipeSettings::default())
.with_vertical_pages()
.with_footer(
TR::instructions__swipe_up.into(),
@ -257,7 +256,9 @@ fn new_confirm_action_uni<T: Component + Paginate + MaybeTrace + 'static>(
match extra {
ConfirmActionExtra::Menu { .. } => {
content = content.with_menu_button();
content = content
.with_menu_button()
.with_swipe(Direction::Left, SwipeSettings::default());
}
ConfirmActionExtra::Cancel => {
content = content.with_cancel_button();