respect notifications_enabled setting

This commit is contained in:
MeexReay 2025-06-18 13:11:18 +03:00
parent a102d0d260
commit 29764b0344

View File

@ -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) { 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 formatting_enabled = ctx.config(|c| c.formatting_enabled);
let Some(message) = (if formatting_enabled { let Some(message) = (if formatting_enabled {