1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-28 16:21:03 +00:00

chore(core): Fix swipe-back action in tutorial flow menu

This commit is contained in:
Lukas Bielesch 2024-11-08 19:10:48 +01:00 committed by Lukáš Bielesch
parent 99742e4862
commit 71db065e4a
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
[T3T1] Make swipe back action in tutorial flow menu consistent with menu cancel action.

View File

@ -52,7 +52,7 @@ impl FlowController for ShowTutorial {
(Self::StepMenu, Direction::Down) => Self::StepNavigation.swipe(direction),
(Self::StepMenu, Direction::Left) => Self::Menu.swipe(direction),
(Self::Menu, Direction::Left) => Self::DidYouKnow.swipe(direction),
(Self::Menu, Direction::Right) => Self::StepBegin.swipe(direction),
(Self::Menu, Direction::Right) => Self::StepMenu.swipe(direction),
(Self::DidYouKnow, Direction::Right) => Self::Menu.swipe(direction),
(Self::StepDone, Direction::Up) => self.return_msg(FlowMsg::Confirmed),
_ => self.do_nothing(),