Reset results key/line index on Action::SetMode

This commit is contained in:
2Shirt 2025-05-27 19:18:01 -07:00
parent e0823293e2
commit 52ccc154cc
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -84,6 +84,8 @@ impl Component for Results {
} }
Action::SetMode(mode) => { Action::SetMode(mode) => {
self.show = mode == Mode::BootDiags; self.show = mode == Mode::BootDiags;
self.key_index = 0;
self.line_index = 0;
} }
_ => {} _ => {}
}; };