mirror of
https://github.com/MeexReay/bRAC.git
synced 2025-06-24 02:42:57 +03:00
respect notifications_enabled setting
This commit is contained in:
parent
a102d0d260
commit
29764b0344
@ -930,6 +930,8 @@ fn send_notification(_: Arc<Context>, ui: &UiModel, title: &str, message: &str)
|
||||
}
|
||||
|
||||
fn on_add_message(ctx: Arc<Context>, ui: &UiModel, message: String, notify: bool) {
|
||||
let notify = notify && ctx.config(|c| c.notifications_enabled);
|
||||
|
||||
let formatting_enabled = ctx.config(|c| c.formatting_enabled);
|
||||
|
||||
let Some(message) = (if formatting_enabled {
|
||||
|
Loading…
x
Reference in New Issue
Block a user