diff options
-rw-r--r-- | apps/root_menu.c | 5 | ||||
-rw-r--r-- | manual/advanced_topics/main.tex | 2 |
2 files changed, 7 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) | |||
517 | unsigned int menu_item_count = 0, i; | 517 | unsigned int menu_item_count = 0, i; |
518 | bool main_menu_added = false; | 518 | bool main_menu_added = false; |
519 | 519 | ||
520 | if (*value == '-') | ||
521 | { | ||
522 | root_menu_set_default(setting, NULL); | ||
523 | return; | ||
524 | } | ||
520 | root_menu_.flags = MENU_HAS_DESC | MT_MENU; | 525 | root_menu_.flags = MENU_HAS_DESC | MT_MENU; |
521 | root_menu_.submenus = (const struct menu_item_ex **)&root_menu__; | 526 | root_menu_.submenus = (const struct menu_item_ex **)&root_menu__; |
522 | root_menu_.callback_and_desc = &root_menu_desc; | 527 | root_menu_.callback_and_desc = &root_menu_desc; |
diff --git a/manual/advanced_topics/main.tex b/manual/advanced_topics/main.tex index 196053759b..eaa0494691 100644 --- a/manual/advanced_topics/main.tex +++ b/manual/advanced_topics/main.tex | |||
@@ -23,6 +23,8 @@ in the list. The items whose words do not occur in the list will be hidden, | |||
23 | with one exception: the menu item ``Settings'' will be shown even if its word | 23 | with one exception: the menu item ``Settings'' will be shown even if its word |
24 | is not in the list (it is added as the last item then). | 24 | is not in the list (it is added as the last item then). |
25 | 25 | ||
26 | Use the line \config{root\_menu\_order:-} to reset the menu order | ||
27 | |||
26 | Only the main menu can be customised this way, submenus can not. | 28 | Only the main menu can be customised this way, submenus can not. |
27 | 29 | ||
28 | \opt{lcd_bitmap}{ | 30 | \opt{lcd_bitmap}{ |