mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +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