mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 15:06:42 +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()
|
void toggleMainMenu()
|
||||||
{
|
{
|
||||||
if (windows.isGuiMode () && windows.getMode () == MWGui::GM_MainMenu)
|
if (windows.isGuiMode () && (windows.getMode () == MWGui::GM_MainMenu || windows.getMode () == MWGui::GM_Settings))
|
||||||
windows.removeGuiMode (MWGui::GM_MainMenu);
|
windows.popGuiMode();
|
||||||
else
|
else
|
||||||
windows.pushGuiMode (MWGui::GM_MainMenu);
|
windows.pushGuiMode (MWGui::GM_MainMenu);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue