This commit is contained in:
henrypp committed 2019-09-20 16:57:17 +06:00
1 parent e91c5c7f6b
commit 62ba09bb88
1 file changed
+1 -1
+1 -1
View File
@@ -9,7 +9,7 @@ void _app_logerror (LPCWSTR fn, DWORD errcode, LPCWSTR desc, bool is_nopopups)
_r_dbg (fn, errcode, desc);
if ((current_time - app.ConfigGet (L"ErrorNotificationsTimestamp", time_t (0)).AsLonglong ()) >= app.ConfigGet (L"ErrorNotificationsPeriod", time_t (4)).AsLonglong () && !is_nopopups && app.ConfigGet (L"IsErrorNotificationsEnabled", true).AsBool ()) // check for timeout (sec.)
if ((current_time - app.ConfigGet (L"ErrorNotificationsTimestamp", 0LL).AsLonglong ()) >= app.ConfigGet (L"ErrorNotificationsPeriod", 4LL).AsLonglong () && !is_nopopups && app.ConfigGet (L"IsErrorNotificationsEnabled", true).AsBool ()) // check for timeout (sec.)
{
_r_tray_popup (app.GetHWND (), UID, NIIF_ERROR | (app.ConfigGet (L"IsNotificationsSound", true).AsBool () ? 0 : NIIF_NOSOUND), APP_NAME, app.LocaleString (IDS_STATUS_ERROR, nullptr));
app.ConfigSet (L"ErrorNotificationsTimestamp", current_time);