Fix app close on macOS.

This commit is contained in:
Martín Lucas Golini
2023-09-25 23:45:35 -03:00
parent 68950b37ed
commit 70d4c51c98

View File

@@ -3322,7 +3322,7 @@ void App::init( const LogLevel& logLevel, std::string file, const Float& pidelDe
mWindow->setQuitCallback( [this]( EE::Window::Window* win ) {
if ( mWindow->isOpen() )
onCloseRequestCallback( win );
closeApp();
} );
mWindow->getInput()->pushCallback( [this]( InputEvent* event ) {