mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-24 01:46:31 +00:00
Reset focus in SelectView::clear
This commit is contained in:
parent
f7b6397588
commit
09202f55c8
@ -198,6 +198,7 @@ impl<T: 'static> SelectView<T> {
|
|||||||
/// Removes all items from this view.
|
/// Removes all items from this view.
|
||||||
pub fn clear(&mut self) {
|
pub fn clear(&mut self) {
|
||||||
self.items.clear();
|
self.items.clear();
|
||||||
|
self.focus.set(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Adds a item to the list, with given label and value.
|
/// Adds a item to the list, with given label and value.
|
||||||
|
Loading…
Reference in New Issue
Block a user