mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-31 04:25:40 +00:00
(Android) Added some cleanup code when changing the input overlay setting
This commit is contained in:
parent
720ca50cd0
commit
218cb1e96f
|
@ -1179,6 +1179,12 @@ void GuiMenu::openInputDeviceOptions()
|
||||||
if (Settings::getInstance()->getBool("InputTouchOverlay") !=
|
if (Settings::getInstance()->getBool("InputTouchOverlay") !=
|
||||||
inputTouchOverlay->getState()) {
|
inputTouchOverlay->getState()) {
|
||||||
Settings::getInstance()->setBool("InputTouchOverlay", inputTouchOverlay->getState());
|
Settings::getInstance()->setBool("InputTouchOverlay", inputTouchOverlay->getState());
|
||||||
|
|
||||||
|
if (Settings::getInstance()->getBool("InputTouchOverlay"))
|
||||||
|
InputOverlay::getInstance().createButtons();
|
||||||
|
else
|
||||||
|
InputOverlay::getInstance().clearButtons();
|
||||||
|
|
||||||
s->setNeedsSaving();
|
s->setNeedsSaving();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue