add quit signal check to the client mainloop

This commit is contained in:
MihailRis 2026-07-31 18:57:43 +03:00
parent 4a53090610
commit ee9b2ab266

View file

@ -43,7 +43,7 @@ void Mainloop::run() {
auto& appScripts = engine.getAppScripts();
logger.info() << "main loop started";
while (!window.isShouldClose()) {
while (!window.isShouldClose() && !engine.isQuitSignal()) {
time.update(window.time());
engine.applicationTick();
engine.updateFrontend();