diff --git a/src/tools/ecode/ecode.cpp b/src/tools/ecode/ecode.cpp index cbb6ec99d..34cb66891 100644 --- a/src/tools/ecode/ecode.cpp +++ b/src/tools/ecode/ecode.cpp @@ -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 ) {