From 5dd1a9da3ea4d20afeee1f99ed3a4d2dfd2c5bbd Mon Sep 17 00:00:00 2001 From: henrypp Date: Tue, 13 Aug 2019 16:35:31 +0600 Subject: [PATCH] fix notification windows refresh --- src/notifications.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/notifications.cpp b/src/notifications.cpp index f7669e5d..5fb7c407 100644 --- a/src/notifications.cpp +++ b/src/notifications.cpp @@ -530,7 +530,10 @@ void _app_notifyplaysound () void _app_notifyrefresh (HWND hwnd, bool is_safety) { if (!app.ConfigGet (L"IsNotificationsEnabled", true).AsBool () || !IsWindowVisible (hwnd)) - _app_notifyhide (config.hnotification); + { + _app_notifyhide (hwnd); + return; + } PR_OBJECT ptr_log_object = _app_notifyget_obj (_app_notifyget_id (hwnd, INVALID_SIZE_T));