From 440482c4185308576ac6e7b4b59ddfa378fb95eb Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 4 May 2026 19:13:46 +0200 Subject: [PATCH] Show an notification if opening the config menu failed --- source/utils/DrawUtils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/utils/DrawUtils.cpp b/source/utils/DrawUtils.cpp index 1ed4e3a..22d7422 100644 --- a/source/utils/DrawUtils.cpp +++ b/source/utils/DrawUtils.cpp @@ -1,5 +1,6 @@ #include "DrawUtils.h" +#include "NotificationsUtils.h" #include "dc.h" #include "globals.h" #include "logger.h" @@ -641,6 +642,7 @@ void DrawUtils::RenderScreen(const std::function &callback) { } if (!screenbuffer0 || !screenbuffer1) { DEBUG_FUNCTION_LINE_ERR("Failed to alloc buffers"); + DisplayInfoNotificationMessage("Not enough memory to render the config menu, please try again", 5.0); goto error_exit; } }