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:
@@ -354,14 +354,8 @@ void AdventureMapShortcuts::quitGame()
|
||||
{
|
||||
GAME->interface()->showYesNoDialog(
|
||||
LIBRARY->generaltexth->allTexts[578],
|
||||
[]()
|
||||
{
|
||||
ENGINE->dispatchMainThread( []()
|
||||
{
|
||||
handleQuit(false);
|
||||
});
|
||||
},
|
||||
0
|
||||
[](){ GAME->onShutdownRequested(false);},
|
||||
nullptr
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user