From 218cb1e96fc66418d0b2ec99790bb530a4df0ee1 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 14 Jan 2024 13:30:45 +0100 Subject: [PATCH] (Android) Added some cleanup code when changing the input overlay setting --- es-app/src/guis/GuiMenu.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index 727d995a0..0f393f986 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -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(); } });