From 99742e4862efbe32bddd991fdb7b00ae247c313d Mon Sep 17 00:00:00 2001 From: Lukas Bielesch Date: Thu, 7 Nov 2024 17:41:46 +0100 Subject: [PATCH] chore(core): Implement swipe back in confirm_fido flow menu --- core/.changelog.d/4176.fixed | 1 + core/embed/rust/src/ui/model_mercury/flow/confirm_fido.rs | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 core/.changelog.d/4176.fixed diff --git a/core/.changelog.d/4176.fixed b/core/.changelog.d/4176.fixed new file mode 100644 index 0000000000..2fe8f718c6 --- /dev/null +++ b/core/.changelog.d/4176.fixed @@ -0,0 +1 @@ +[T3T1] Add swipe back in fido confirm flow menu. diff --git a/core/embed/rust/src/ui/model_mercury/flow/confirm_fido.rs b/core/embed/rust/src/ui/model_mercury/flow/confirm_fido.rs index 7e569d2373..6c2bf97324 100644 --- a/core/embed/rust/src/ui/model_mercury/flow/confirm_fido.rs +++ b/core/embed/rust/src/ui/model_mercury/flow/confirm_fido.rs @@ -49,6 +49,13 @@ impl FlowController for ConfirmFido { fn handle_swipe(&'static self, direction: Direction) -> Decision { match (self, direction) { (Self::Intro, Direction::Left) => Self::Menu.swipe(direction), + (Self::Menu, Direction::Right) => { + if Self::single_cred() { + Self::Details.swipe_right() + } else { + Self::Intro.swipe_right() + } + } (Self::Intro, Direction::Up) => Self::ChooseCredential.swipe(direction), (Self::ChooseCredential, Direction::Down) => Self::Intro.swipe(direction), (Self::Details, Direction::Up) => Self::Tap.swipe(direction),