mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-25 06:24:26 +00:00
Compare commits
2 Commits
f8b2155b9e
...
0d56443ea8
Author | SHA1 | Date | |
---|---|---|---|
|
0d56443ea8 | ||
|
5386cb7f84 |
|
@ -158,4 +158,8 @@ impl Filter {
|
||||||
self.search_input.remove(current);
|
self.search_input.remove(current);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
pub fn clear_search(&mut self) {
|
||||||
|
self.search_input.clear();
|
||||||
|
self.input_position = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -726,6 +726,7 @@ impl AppState {
|
||||||
.root()
|
.root()
|
||||||
.id()];
|
.id()];
|
||||||
self.selection.select(Some(0));
|
self.selection.select(Some(0));
|
||||||
|
self.filter.clear_search();
|
||||||
self.update_items();
|
self.update_items();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user