From c9e9d2a3cb32d87767aa9eb0baaa67d1dc3ef728 Mon Sep 17 00:00:00 2001 From: Lukas Bielesch Date: Tue, 11 Feb 2025 11:59:04 +0100 Subject: [PATCH] feat(eckhart): Add new Back Header message type --- core/embed/rust/src/ui/layout_eckhart/component/header.rs | 1 + core/embed/rust/src/ui/layout_eckhart/component/text_screen.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/core/embed/rust/src/ui/layout_eckhart/component/header.rs b/core/embed/rust/src/ui/layout_eckhart/component/header.rs index a191f17897..06965987de 100644 --- a/core/embed/rust/src/ui/layout_eckhart/component/header.rs +++ b/core/embed/rust/src/ui/layout_eckhart/component/header.rs @@ -84,6 +84,7 @@ pub struct Header { #[derive(Copy, Clone)] pub enum HeaderMsg { + Back, Cancelled, Menu, } diff --git a/core/embed/rust/src/ui/layout_eckhart/component/text_screen.rs b/core/embed/rust/src/ui/layout_eckhart/component/text_screen.rs index 3656cdaed1..6c3f973ec0 100644 --- a/core/embed/rust/src/ui/layout_eckhart/component/text_screen.rs +++ b/core/embed/rust/src/ui/layout_eckhart/component/text_screen.rs @@ -105,6 +105,7 @@ where match msg { HeaderMsg::Cancelled => return Some(TextScreenMsg::Cancelled), HeaderMsg::Menu => return Some(TextScreenMsg::Menu), + _ => {} } } if let Some(msg) = self.action_bar.event(ctx, event) {