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:
parent
9313274302
commit
f6d3680cb8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue