summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-04-21 01:32:19 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-04-21 18:28:09 +0000
commitf6d3680cb84c05d3037650b12e6f8c258b2a6758 (patch)
tree65930ef42b4bf018dea1e36249f010d768b3859c
parent9313274302554d06f0ba58fce44109088a8908aa (diff)
downloadrockbox-f6d3680cb8.tar.gz
rockbox-f6d3680cb8.zip
Make sure battery menu is shown if it contains settings
The #if statement didn't reflect all menu items in the battery menu, so if the USB charging enable setting was the only one present, the entire menu would be hidden. Change-Id: I17a4ed626debf1f61ca140d67d477bdbd52ca180
-rw-r--r--apps/menus/settings_menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c
index 4202298fa3..58c328c677 100644
--- a/apps/menus/settings_menu.c
+++ b/apps/menus/settings_menu.c
@@ -400,7 +400,7 @@ MENUITEM_SETTING(governor, &global_settings.governor, NULL);
MAKE_MENU(system_menu, ID2P(LANG_SYSTEM),
0, Icon_System_menu,
-#if (BATTERY_CAPACITY_INC > 0) || (BATTERY_TYPES_COUNT > 1)
+#if (BATTERY_CAPACITY_INC > 0) || (BATTERY_TYPES_COUNT > 1) || defined(HAVE_USB_CHARGING_ENABLE)
&battery_menu,
#endif
#if defined(HAVE_DIRCACHE) || defined(HAVE_DISK_STORAGE)