1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Moved shutdown request dialog handling to GameInstance

This commit is contained in:
Ivan Savenko
2025-03-03 21:45:58 +00:00
parent f8c1d217d4
commit 9732d39c70
10 changed files with 44 additions and 82 deletions

View File

@@ -354,14 +354,8 @@ void AdventureMapShortcuts::quitGame()
{
GAME->interface()->showYesNoDialog(
LIBRARY->generaltexth->allTexts[578],
[]()
{
ENGINE->dispatchMainThread( []()
{
handleQuit(false);
});
},
0
[](){ GAME->onShutdownRequested(false);},
nullptr
);
}