Make List widget naming more consistent

This commit is contained in:
Joscha 2022-07-23 19:50:49 +02:00
parent 5f28ff0ffd
commit 709ab07442
3 changed files with 3 additions and 3 deletions

View file

@ -234,7 +234,7 @@ impl EuphRoom {
}
fn nick_list_widget(&self, joined: &Joined) -> BoxedWidget {
let mut list = self.nick_list.list();
let mut list = self.nick_list.widget();
Self::render_nick_list_rows(&mut list, joined);
list.into()
}

View file

@ -149,7 +149,7 @@ impl Rooms {
async fn rooms_widget(&mut self) -> BoxedWidget {
let rooms = self.stabilize_rooms().await;
let mut list = self.list.list().focus(true);
let mut list = self.list.widget().focus(true);
self.render_rows(&mut list, rooms).await;
list.into()
}

View file

@ -152,7 +152,7 @@ impl<Id> ListState<Id> {
Self(Arc::new(Mutex::new(InnerListState::new())))
}
pub fn list(&self) -> List<Id> {
pub fn widget(&self) -> List<Id> {
List::new(self.0.clone())
}