From 970dbd1841afaf47fbdf8a93fd45e2f0316e6f32 Mon Sep 17 00:00:00 2001 From: henrypp Date: Tue, 4 Nov 2025 16:59:49 +0500 Subject: [PATCH] correct order --- src/log.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/log.c b/src/log.c index 072844cf..3f5fb363 100644 --- a/src/log.c +++ b/src/log.c @@ -1400,6 +1400,19 @@ VOID NTAPI _app_logthread ( ptr_log->remote_addr_str = _app_formataddress (ptr_log->af, ptr_log->protocol, &ptr_log->remote_addr, 0, 0); ptr_log->local_addr_str = _app_formataddress (ptr_log->af, ptr_log->protocol, &ptr_log->local_addr, 0, 0); + // display notification + if (is_notificationenabled) + { + if (ptr_app && !ptr_log->is_allow && is_exludeblocklist) + { + if (_app_getappinfo (ptr_app, INFO_IS_SILENT, &is_silent, sizeof (BOOLEAN))) + { + if (!is_silent) + _app_notify_addobject (hwnd, ptr_log, ptr_app); + } + } + } + // write log to a file if (is_logenabled) _app_logwrite (ptr_log); @@ -1418,19 +1431,6 @@ VOID NTAPI _app_logthread ( // write to a ui _app_logwrite_ui (hwnd, ptr_log); } - - // display notification - if (is_notificationenabled) - { - if (ptr_app && !ptr_log->is_allow && is_exludeblocklist) - { - if (_app_getappinfo (ptr_app, INFO_IS_SILENT, &is_silent, sizeof (BOOLEAN))) - { - if (!is_silent) - _app_notify_addobject (hwnd, ptr_log, ptr_app); - } - } - } } }