Reset TableType selection when going to prior modes
This commit is contained in:
parent
833223b7ad
commit
b8403d6f52
1 changed files with 7 additions and 0 deletions
|
|
@ -430,6 +430,13 @@ impl App {
|
||||||
self.selections[1] = two;
|
self.selections[1] = two;
|
||||||
}
|
}
|
||||||
Action::SetMode(new_mode) => {
|
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.set_mode(new_mode)?;
|
||||||
self.action_tx
|
self.action_tx
|
||||||
.send(Action::UpdateFooter(build_footer_string(self.cur_mode)))?;
|
.send(Action::UpdateFooter(build_footer_string(self.cur_mode)))?;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue