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:
parent
d64c9507c9
commit
f767b6ccfb
2 changed files with 10 additions and 0 deletions
|
@ -449,6 +449,11 @@ void GuiManager::runLoop() {
|
|||
#endif
|
||||
}
|
||||
|
||||
void GuiManager::exitLoop() {
|
||||
while (!_dialogStack.empty())
|
||||
getTopDialog()->close();
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
||||
void GuiManager::saveState() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue