1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-30 03:04:31 +00:00

Don't reset item view focus during realignment (#8771)

This commit is contained in:
Alexei Kotov 2025-11-08 02:24:24 +03:00
parent 39d117e362
commit ba197863cf

View file

@ -82,9 +82,10 @@ namespace MWGui
if (Settings::gui().mControllerMenus)
{
mControllerFocus = -1;
if (mItemCount > 0)
mControllerFocus = std::clamp(mControllerFocus, 0, mItemCount - 1);
else
mControllerFocus = -1;
updateControllerFocus(-1, mControllerFocus);
}