Add an empty state to the notification panel

This commit is contained in:
Max Brunsfeld 2023-10-16 12:54:44 -07:00
parent 522b76e452
commit c66385f0f9
2 changed files with 22 additions and 3 deletions

View file

@ -378,6 +378,10 @@ impl<V: 'static> ListState<V> {
.extend((0..element_count).map(|_| ListItem::Unrendered), &());
}
pub fn item_count(&self) -> usize {
self.0.borrow().items.summary().count
}
pub fn splice(&self, old_range: Range<usize>, count: usize) {
let state = &mut *self.0.borrow_mut();