1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Aidan MacDonald 2021-04-21 01:32:19 +01:00
parent 9313274302
commit f6d3680cb8

View file

@ -400,7 +400,7 @@ MENUITEM_SETTING(governor, &global_settings.governor, NULL);
MAKE_MENU(system_menu, ID2P(LANG_SYSTEM), MAKE_MENU(system_menu, ID2P(LANG_SYSTEM),
0, Icon_System_menu, 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, &battery_menu,
#endif #endif
#if defined(HAVE_DIRCACHE) || defined(HAVE_DISK_STORAGE) #if defined(HAVE_DIRCACHE) || defined(HAVE_DISK_STORAGE)