From f25c4475a348f534de8ff724e9e42808b7a80a12 Mon Sep 17 00:00:00 2001 From: Douglas Teles Date: Tue, 7 Jul 2026 17:03:06 -0300 Subject: [PATCH] menu: default the power LED selection to on, matching the boot state With option_powerled unset the option list preselected heartbeat, but the DTS boots the LED solid on and nothing applies a mode until the user saves one, so the menu claimed heartbeat while the LED sat static. Preselect "on" for the unset case and use it as the re-enable fallback of DISABLE POWER LED too. Co-Authored-By: Claude Fable 5 --- es-app/src/guis/GuiMenu.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index 2efb31ee2..cf630f10c 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -1817,7 +1817,7 @@ void GuiMenu::openSystemSettings() // restores the POWER LED COLOR choice (heartbeat when unset). std::string mode = pwrleddisabled ? "off" : SystemConf::getInstance()->get("option_powerled"); if (mode.empty()) - mode = "heartbeat"; + mode = "on"; std::thread([mode] { ApiSystem::getInstance()->setPowerLedGameForce(mode); }).detach(); }); } @@ -2473,9 +2473,11 @@ void GuiMenu::openSystemSettings() }); auto powerled_GameForce = std::make_shared< OptionListComponent >(mWindow, _("POWER LED COLOR")); - powerled_GameForce->add(_("heartbeat"), "heartbeat", SystemConf::getInstance()->get("option_powerled") == "heartbeat" || SystemConf::getInstance()->get("option_powerled") == ""); + powerled_GameForce->add(_("heartbeat"), "heartbeat", SystemConf::getInstance()->get("option_powerled") == "heartbeat"); powerled_GameForce->add(_("off"), "off", SystemConf::getInstance()->get("option_powerled") == "off"); - powerled_GameForce->add(_("on"), "on", SystemConf::getInstance()->get("option_powerled") == "on"); + // The DTS boots the LED solid on, so an unset conf must show "on" or + // the menu claims heartbeat while the LED sits static. + powerled_GameForce->add(_("on"), "on", SystemConf::getInstance()->get("option_powerled") == "on" || SystemConf::getInstance()->get("option_powerled") == ""); s->addWithLabel(_("POWER LED COLOR"), powerled_GameForce); s->addSaveFunc([powerled_GameForce] {