mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 05:39: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
|
@ -1319,6 +1319,9 @@ pub struct ChatStore {
|
|||
|
||||
/// Whether to ring the terminal bell on the next redraw.
|
||||
pub ring_bell: bool,
|
||||
|
||||
/// Whether the application is currently focused
|
||||
pub focused: bool,
|
||||
}
|
||||
|
||||
impl ChatStore {
|
||||
|
@ -1341,6 +1344,7 @@ impl ChatStore {
|
|||
sync_info: Default::default(),
|
||||
draw_curr: None,
|
||||
ring_bell: false,
|
||||
focused: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue