mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-24 22:14:28 +00:00
clear the search bar if the user changes categories
This commit is contained in:
parent
3c4a5dcecd
commit
5386cb7f84
|
@ -158,4 +158,8 @@ impl Filter {
|
|||
self.search_input.remove(current);
|
||||
}
|
||||
}
|
||||
pub fn clear_search(&mut self) {
|
||||
self.search_input.clear();
|
||||
self.input_position = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -723,6 +723,7 @@ impl AppState {
|
|||
.root()
|
||||
.id()];
|
||||
self.selection.select(Some(0));
|
||||
self.filter.clear_search();
|
||||
self.update_items();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user