WindowModule should unload when no window exists during run
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user