(Android) Added some cleanup code when changing the input overlay setting

This commit is contained in:
Leon Styhre 2024-01-14 13:30:45 +01:00
parent 720ca50cd0
commit 218cb1e96f

View file

@ -1179,6 +1179,12 @@ void GuiMenu::openInputDeviceOptions()
if (Settings::getInstance()->getBool("InputTouchOverlay") !=
inputTouchOverlay->getState()) {
Settings::getInstance()->setBool("InputTouchOverlay", inputTouchOverlay->getState());
if (Settings::getInstance()->getBool("InputTouchOverlay"))
InputOverlay::getInstance().createButtons();
else
InputOverlay::getInstance().clearButtons();
s->setNeedsSaving();
}
});