mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-19 21:29:52 -07:00
Allow notifications on open room if terminal not focused (#281)
This commit is contained in:
parent
cb4455655f
commit
9a1adfb287
3 changed files with 21 additions and 4 deletions
|
@ -355,9 +355,13 @@ impl Application {
|
|||
// Do nothing for now.
|
||||
},
|
||||
Event::FocusGained => {
|
||||
let mut store = self.store.lock().await;
|
||||
store.application.focused = true;
|
||||
self.focused = true;
|
||||
},
|
||||
Event::FocusLost => {
|
||||
let mut store = self.store.lock().await;
|
||||
store.application.focused = false;
|
||||
self.focused = false;
|
||||
},
|
||||
Event::Resize(_, _) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue