From 69268535d8c9d5568e20132d9827cf18d33c93aa Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 26 Apr 2024 16:02:20 +0200 Subject: [PATCH] Fix error notifications --- source/NotificationsUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/NotificationsUtils.cpp b/source/NotificationsUtils.cpp index 6437332..b17d5e0 100644 --- a/source/NotificationsUtils.cpp +++ b/source/NotificationsUtils.cpp @@ -16,7 +16,7 @@ bool DisplayNotificationMessage(std::string_view text, NotificationModuleNotific NotificationModule_SetDefaultValue(NOTIFICATION_MODULE_NOTIFICATION_TYPE_INFO, NOTIFICATION_MODULE_DEFAULT_OPTION_DURATION_BEFORE_FADE_OUT, duration); NotificationModule_AddInfoNotification(text.data()); } else if (type == NOTIFICATION_MODULE_NOTIFICATION_TYPE_ERROR) { - NotificationModule_SetDefaultValue(NOTIFICATION_MODULE_NOTIFICATION_TYPE_ERROR, NOTIFICATION_MODULE_DEFAULT_OPTION_KEEP_UNTIL_SHOWN, false); + NotificationModule_SetDefaultValue(NOTIFICATION_MODULE_NOTIFICATION_TYPE_ERROR, NOTIFICATION_MODULE_DEFAULT_OPTION_KEEP_UNTIL_SHOWN, true); NotificationModule_SetDefaultValue(NOTIFICATION_MODULE_NOTIFICATION_TYPE_ERROR, NOTIFICATION_MODULE_DEFAULT_OPTION_DURATION_BEFORE_FADE_OUT, duration); NotificationModule_AddErrorNotification(text.data()); } else {