From 34bae7038f1609b69389cf8407a0c563850515eb Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 26 Apr 2024 13:57:37 +0200 Subject: [PATCH] Make sure notiifcations will be actually shown --- Dockerfile | 2 +- source/NotificationsUtils.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6c72c3b..01ffdbc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,6 @@ COPY --from=ghcr.io/wiiu-env/wiiupluginsystem:20240425 /artifacts $DEVKITPRO COPY --from=ghcr.io/wiiu-env/libfunctionpatcher:20230621 /artifacts $DEVKITPRO COPY --from=ghcr.io/wiiu-env/libmappedmemory:20230621 /artifacts $DEVKITPRO COPY --from=ghcr.io/wiiu-env/libwupsbackend:20240425 /artifacts $DEVKITPRO -COPY --from=ghcr.io/wiiu-env/libnotifications:20230621 /artifacts $DEVKITPRO +COPY --from=ghcr.io/wiiu-env/libnotifications:20240426 /artifacts $DEVKITPRO WORKDIR project diff --git a/source/NotificationsUtils.cpp b/source/NotificationsUtils.cpp index 62a6edd..6437332 100644 --- a/source/NotificationsUtils.cpp +++ b/source/NotificationsUtils.cpp @@ -16,6 +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_DURATION_BEFORE_FADE_OUT, duration); NotificationModule_AddErrorNotification(text.data()); } else {