mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-30 13:04:33 +00:00
Don't reset item view focus during realignment (#8771)
This commit is contained in:
parent
39d117e362
commit
ba197863cf
1 changed files with 2 additions and 1 deletions
|
|
@ -82,9 +82,10 @@ namespace MWGui
|
||||||
|
|
||||||
if (Settings::gui().mControllerMenus)
|
if (Settings::gui().mControllerMenus)
|
||||||
{
|
{
|
||||||
mControllerFocus = -1;
|
|
||||||
if (mItemCount > 0)
|
if (mItemCount > 0)
|
||||||
mControllerFocus = std::clamp(mControllerFocus, 0, mItemCount - 1);
|
mControllerFocus = std::clamp(mControllerFocus, 0, mItemCount - 1);
|
||||||
|
else
|
||||||
|
mControllerFocus = -1;
|
||||||
updateControllerFocus(-1, mControllerFocus);
|
updateControllerFocus(-1, mControllerFocus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue