fix(notification): Fix sometimes no notification sent

This happened when the application was running in the background, and
only for the last active channel.

Fixes #203.
This commit is contained in:
Julian Schmidhuber committed 2024-04-28 15:40:30 +02:00
1 parent df48d35ad4
commit 239f3d6afb
2 files changed
+9 -3

No files matched your search

+4
View File
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixes
- No notifications being sent when Flare is in the background for the last active channel.
## [0.14.3] - 2024-04-20
### Fixes
+5 -3
View File
@@ -391,9 +391,11 @@ pub mod imp {
fn setup_active_window_handler(&self) {
let obj = self.obj();
obj.connect_is_active_notify(clone!(
@weak self as w => move |window| {
w.channel_list.set_active(window.is_active())
obj.connect_is_active_notify(clone!(@weak self as w => move |window| {
w.channel_list.set_active(window.is_active() && window.is_visible())
}));
obj.connect_visible_notify(clone!(@weak self as w => move |window| {
w.channel_list.set_active(window.is_active() && window.is_visible())
}));
}