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