fix: Web build not properly starting up anymore

This commit is contained in:
WerWolv
2025-08-02 23:07:20 +02:00
parent 2440acda07
commit b81328ac1a

View File

@@ -45,7 +45,12 @@
auto &splashWindow = *reinterpret_cast<std::unique_ptr<init::WindowSplash>*>(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