From 5b5003dcb12b0fe22f497a62d3024f3cf7a10fd1 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Sat, 24 Jul 2004 21:26:41 +0000 Subject: New feature: clean shutdown if you press OFF twice in the file browser, or select "Shut off" in the main menu. Players only have the menu option, due to lack of keys. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4940 a1c6a512-1295-4272-9138-f99709370657 --- apps/main_menu.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'apps/main_menu.c') diff --git a/apps/main_menu.c b/apps/main_menu.c index 462d10df0d..991a1681de 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c @@ -49,7 +49,7 @@ #ifdef HAVE_FMRADIO #include "radio.h" #endif - +#include "misc.h" #include "lang.h" #ifdef HAVE_MAS3587F @@ -324,7 +324,7 @@ bool main_menu(void) int i = 0; /* main menu */ - struct menu_item items[8]; + struct menu_item items[9]; items[i].desc = ID2P(LANG_BOOKMARK_MENU); items[i++].function = bookmark_menu; @@ -356,6 +356,9 @@ bool main_menu(void) items[i].desc = ID2P(LANG_INFO); items[i++].function = info_menu; + items[i].desc = ID2P(LANG_SHUTDOWN); + items[i++].function = clean_shutdown; + m=menu_init( items, i, NULL, NULL, NULL, NULL ); #ifdef HAVE_LCD_CHARCELLS status_set_param(true); -- cgit v1.2.3