Display chat cursor only when chat has focus
This commit is contained in:
parent
9c9d9a51bb
commit
75e3a08b58
4 changed files with 81 additions and 48 deletions
|
|
@ -12,7 +12,7 @@ use crate::ui::widgets::list::{List, ListState};
|
|||
use crate::ui::widgets::text::Text;
|
||||
use crate::ui::widgets::BoxedWidget;
|
||||
|
||||
pub fn widget(state: &ListState<String>, joined: &Joined, focus: bool) -> BoxedWidget {
|
||||
pub fn widget(state: &ListState<String>, joined: &Joined, focused: bool) -> BoxedWidget {
|
||||
// TODO Handle focus
|
||||
let mut list = state.widget();
|
||||
render_rows(&mut list, joined);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue