WindowModule should unload when no window exists during run

This commit is contained in:
2025-05-02 12:18:16 -05:00
parent 73ce460446
commit 047684c51b
4 changed files with 3 additions and 3 deletions

View File

@@ -45,6 +45,8 @@ void WindowModule::run() {
if(window)
window->doFrame();
else
app->emitEvent(new Archimedes::DoUnloadModuleEvent(name));
}
bool WindowModule::onEvent(const Archimedes::Event& e) {