1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-08 13:46:39 +00:00

Prevent controller from dismissing dialog window when there is a choice active

This commit is contained in:
Andrew Lanzone 2025-07-03 14:32:13 -07:00
parent ffac1cdf3c
commit ee33424c20

View file

@ -982,7 +982,7 @@ namespace MWGui
onSelectListItem(mTopicsList->getItemNameAt(mControllerFocus), mControllerFocus);
MWBase::Environment::get().getWindowManager()->playSound(ESM::RefId::stringRefId("Menu Click"));
}
else if (arg.button == SDL_CONTROLLER_BUTTON_B && mChoices.size() < 2)
else if (arg.button == SDL_CONTROLLER_BUTTON_B && mChoices.empty())
{
onGoodbyeActivated();
}