summaryrefslogtreecommitdiffstats
path: root/apps/settings.c
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/settings.c
parent57a0ebb1645a9c28aba467ea331da0ccce173270 (diff)
downloadrockbox-5dba771d63b26195b24fc5bbd098aff733da2599.tar.gz
rockbox-5dba771d63b26195b24fc5bbd098aff733da2599.tar.bz2
rockbox-5dba771d63b26195b24fc5bbd098aff733da2599.zip
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/settings.c')
-rw-r--r--apps/settings.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 408e377e1a..39390f408e 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -844,6 +844,8 @@ void settings_apply(bool read_disk)
dac_line_in(global_settings.line_in);
#endif
set_poweroff_timeout(global_settings.poweroff);
+ set_keypress_restarts_sleep_timer(
+ global_settings.keypress_restarts_sleeptimer);
#if defined(BATTERY_CAPACITY_INC) && BATTERY_CAPACITY_INC > 0
/* only call if it's really exchangable */