diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index 42a781c31..0f34628f9 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -366,6 +366,12 @@ void GuiMenu::openUISettings() if (enable_filter->getState() != filter_is_enabled) ViewController::get()->ReloadAndGoToStart(); }); + // hide start menu in Kid Mode + auto disable_start = std::make_shared(mWindow); + disable_start->setState(Settings::getInstance()->getBool("DisableKidStartMenu")); + s->addWithLabel("DISABLE START MENU IN KID MODE", disable_start); + s->addSaveFunc([disable_start] { Settings::getInstance()->setBool("DisableKidStartMenu", disable_start->getState()); }); + mWindow->pushGui(s); } diff --git a/es-app/src/views/ViewController.cpp b/es-app/src/views/ViewController.cpp index 3489628f6..454e73c46 100644 --- a/es-app/src/views/ViewController.cpp +++ b/es-app/src/views/ViewController.cpp @@ -360,7 +360,7 @@ bool ViewController::input(InputConfig* config, Input input) return true; // open menu - if(!UIModeController::getInstance()->isUIModeKid() && config->isMappedTo("start", input) && input.value != 0) + if(!(UIModeController::getInstance()->isUIModeKid() && Settings::getInstance()->getBool("DisableKidStartMenu")) && config->isMappedTo("start", input) && input.value != 0) { // open menu mWindow->pushGui(new GuiMenu(mWindow)); @@ -527,7 +527,7 @@ std::vector ViewController::getHelpPrompts() return prompts; prompts = mCurrentView->getHelpPrompts(); - if(!UIModeController::getInstance()->isUIModeKid()) + if(!(UIModeController::getInstance()->isUIModeKid() && Settings::getInstance()->getBool("DisableKidStartMenu"))) prompts.push_back(HelpPrompt("start", "menu")); return prompts; diff --git a/es-core/src/Settings.cpp b/es-core/src/Settings.cpp index d110efac2..f54aac91b 100644 --- a/es-core/src/Settings.cpp +++ b/es-core/src/Settings.cpp @@ -65,6 +65,7 @@ void Settings::setDefaults() mBoolMap["SplashScreen"] = true; mBoolMap["SplashScreenProgress"] = true; mStringMap["StartupSystem"] = ""; + mBoolMap["DisableKidStartMenu"] = true; mBoolMap["VSync"] = true;