GUI: Add exitLoop() method to GuiManager

The idea is to allow backends to start a game even after the
LauncherDialog has been created, and for that they need a way
to close the existing GUI dialogs.
This commit is contained in:
Thierry Crozat 2020-09-06 06:01:06 +01:00
parent d64c9507c9
commit f767b6ccfb
2 changed files with 10 additions and 0 deletions

View file

@ -449,6 +449,11 @@ void GuiManager::runLoop() {
#endif
}
void GuiManager::exitLoop() {
while (!_dialogStack.empty())
getTopDialog()->close();
}
#pragma mark -
void GuiManager::saveState() {