From 71db065e4a85b376b7d0ca14cc1e1158e78d7bab Mon Sep 17 00:00:00 2001 From: Lukas Bielesch Date: Fri, 8 Nov 2024 19:10:48 +0100 Subject: [PATCH] chore(core): Fix swipe-back action in tutorial flow menu --- core/.changelog.d/4294.fixed | 1 + core/embed/rust/src/ui/model_mercury/flow/show_tutorial.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 core/.changelog.d/4294.fixed diff --git a/core/.changelog.d/4294.fixed b/core/.changelog.d/4294.fixed new file mode 100644 index 0000000000..8b231f3b1d --- /dev/null +++ b/core/.changelog.d/4294.fixed @@ -0,0 +1 @@ +[T3T1] Make swipe back action in tutorial flow menu consistent with menu cancel action. diff --git a/core/embed/rust/src/ui/model_mercury/flow/show_tutorial.rs b/core/embed/rust/src/ui/model_mercury/flow/show_tutorial.rs index 9b52c181e4..dead3860d4 100644 --- a/core/embed/rust/src/ui/model_mercury/flow/show_tutorial.rs +++ b/core/embed/rust/src/ui/model_mercury/flow/show_tutorial.rs @@ -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(),