Reset results key/line index on Action::SetMode
This commit is contained in:
parent
e0823293e2
commit
52ccc154cc
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue