Display chat cursor only when chat has focus

This commit is contained in:
Joscha 2022-09-25 21:53:36 +02:00
parent 9c9d9a51bb
commit 75e3a08b58
4 changed files with 81 additions and 48 deletions

View file

@ -66,10 +66,9 @@ impl<M: Msg, S: MsgStore<M>> ChatState<M, S> {
&self.store
}
pub fn widget(&self, nick: String, focus: bool) -> Chat<M, S> {
// TODO Handle focus
pub fn widget(&self, nick: String, focused: bool) -> Chat<M, S> {
match self.mode {
Mode::Tree => Chat::Tree(self.tree.widget(nick)),
Mode::Tree => Chat::Tree(self.tree.widget(nick, focused)),
}
}
}