summaryrefslogtreecommitdiffstats
path: root/apps/root_menu.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2012-02-27 09:34:37 +1100
committerJonathan Gordon <rockbox@jdgordon.info>2012-02-27 09:34:37 +1100
commit9f48f5f2079a46138489fbf62fa94e0e7368ee1c (patch)
tree5d8d2b888359100460df0ee5b1448fe4c6fc16f5 /apps/root_menu.c
parentee1f54ca0101030beb047e89327dcb76feee0c1b (diff)
downloadrockbox-9f48f5f2079a46138489fbf62fa94e0e7368ee1c.tar.gz
rockbox-9f48f5f2079a46138489fbf62fa94e0e7368ee1c.tar.bz2
rockbox-9f48f5f2079a46138489fbf62fa94e0e7368ee1c.zip
root menu: Use - to reset the root menu order from a config
use root_menu_order: - to reset the order Change-Id: I10c38926d79b10c88e5f1e0acdd85ca1a1489edf
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r--apps/root_menu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 16665c1824..6e3164cf04 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -517,6 +517,11 @@ void root_menu_load_from_cfg(void* setting, char *value)
unsigned int menu_item_count = 0, i;
bool main_menu_added = false;
+ if (*value == '-')
+ {
+ root_menu_set_default(setting, NULL);
+ return;
+ }
root_menu_.flags = MENU_HAS_DESC | MT_MENU;
root_menu_.submenus = (const struct menu_item_ex **)&root_menu__;
root_menu_.callback_and_desc = &root_menu_desc;