Make List widget naming more consistent
This commit is contained in:
parent
5f28ff0ffd
commit
709ab07442
3 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue