1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00

FIX(windowmanagerimp): Don't remove a ui mode twice

This commit is contained in:
Dave Corley 2024-09-11 13:16:13 -07:00
parent 6b762a5328
commit 2ea9d6ba20

View File

@ -1323,9 +1323,12 @@ namespace MWGui
window->exit();
}
mKeyboardNavigation->saveFocus(mode);
mGuiModes.pop_back();
mGuiModeStates[mode].update(false);
MWBase::Environment::get().getLuaManager()->uiModeChanged(MWWorld::Ptr());
if (containsMode(mode))
{
mGuiModes.pop_back();
mGuiModeStates[mode].update(false);
MWBase::Environment::get().getLuaManager()->uiModeChanged(MWWorld::Ptr());
}
}
if (!mGuiModes.empty())