Reset TableType selection when going to prior modes

This commit is contained in:
2Shirt 2025-01-24 17:49:31 -08:00
parent 833223b7ad
commit b8403d6f52
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -430,6 +430,13 @@ impl App {
self.selections[1] = two;
}
Action::SetMode(new_mode) => {
// Clear TableType selection
match new_mode {
Mode::SelectDisks | Mode::SelectTableType => {
self.clone.table_type = None;
}
_ => {}
}
self.set_mode(new_mode)?;
self.action_tx
.send(Action::UpdateFooter(build_footer_string(self.cur_mode)))?;