From b81328ac1a8582a4d14e0e45e3bc63c5291ae71a Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 2 Aug 2025 23:07:20 +0200 Subject: [PATCH] fix: Web build not properly starting up anymore --- main/gui/source/init/run/web.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main/gui/source/init/run/web.cpp b/main/gui/source/init/run/web.cpp index e73510c44..7b10f6469 100644 --- a/main/gui/source/init/run/web.cpp +++ b/main/gui/source/init/run/web.cpp @@ -45,7 +45,12 @@ auto &splashWindow = *reinterpret_cast*>(arg); const auto result = splashWindow->loop(); - if (result == true) { + + // If no result was returned yet, keep looping + if (!result.has_value()) + return; + + if (*result) { handleFileOpenRequest(); // Clean up everything after the main window is closed