summaryrefslogtreecommitdiff
path: root/apps/menus
diff options
context:
space:
mode:
authorNick Peskett <rockbox@peskett.co.uk>2011-12-26 09:30:25 +0000
committerNick Peskett <rockbox@peskett.co.uk>2011-12-26 09:30:25 +0000
commit5dba771d63b26195b24fc5bbd098aff733da2599 (patch)
tree42311b171a28178d3a55d4cab887e3a0216988cc /apps/menus
parent57a0ebb1645a9c28aba467ea331da0ccce173270 (diff)
Option to restart running sleep timer on keypress.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31437 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/settings_menu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c
index cce5dd751d..659a7f2fbb 100644
--- a/apps/menus/settings_menu.c
+++ b/apps/menus/settings_menu.c
@@ -439,13 +439,16 @@ MENUITEM_FUNCTION_DYNTEXT(sleep_timer_call, 0, sleep_timer, NULL,
/* make it look like a setting to the user */
MENUITEM_SETTING(sleeptimer_on_startup,
&global_settings.sleeptimer_on_startup, NULL);
+MENUITEM_SETTING(keypress_restarts_sleeptimer,
+ &global_settings.keypress_restarts_sleeptimer, NULL);
MAKE_MENU(startup_shutdown_menu, ID2P(LANG_STARTUP_SHUTDOWN),
0, Icon_System_menu,
&start_screen,
&poweroff,
&sleep_timer_call,
- &sleeptimer_on_startup
+ &sleeptimer_on_startup,
+ &keypress_restarts_sleeptimer
);
/* STARTUP/SHUTDOWN MENU */