mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 07:53:53 +00:00
small main menu fix
This commit is contained in:
parent
380defa52f
commit
2ebf4721d1
1 changed files with 2 additions and 2 deletions
|
@ -214,8 +214,8 @@ private:
|
|||
|
||||
void toggleMainMenu()
|
||||
{
|
||||
if (windows.isGuiMode () && windows.getMode () == MWGui::GM_MainMenu)
|
||||
windows.removeGuiMode (MWGui::GM_MainMenu);
|
||||
if (windows.isGuiMode () && (windows.getMode () == MWGui::GM_MainMenu || windows.getMode () == MWGui::GM_Settings))
|
||||
windows.popGuiMode();
|
||||
else
|
||||
windows.pushGuiMode (MWGui::GM_MainMenu);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue