1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-28 15:22:14 +00:00

feat(eckhart): Add new Back Header message type

This commit is contained in:
Lukas Bielesch 2025-02-11 11:59:04 +01:00 committed by obrusvit
parent c4f7168134
commit c9e9d2a3cb
2 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,7 @@ pub struct Header {
#[derive(Copy, Clone)]
pub enum HeaderMsg {
Back,
Cancelled,
Menu,
}

View File

@ -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) {