summaryrefslogtreecommitdiffstats
path: root/apps/root_menu.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-10-17 18:57:38 +0000
committerThomas Martitz <kugel@rockbox.org>2011-10-17 18:57:38 +0000
commite347146b6268ece5b90bb6cf6fcb5c4e8f9b6a1e (patch)
tree4b59a351430c3a5d2c51fc36c76c0b3711bf0d2a /apps/root_menu.c
parente44af440c50e2d87fcb57a91a8036e108a3b7362 (diff)
downloadrockbox-e347146b6268ece5b90bb6cf6fcb5c4e8f9b6a1e.tar.gz
rockbox-e347146b6268ece5b90bb6cf6fcb5c4e8f9b6a1e.tar.bz2
rockbox-e347146b6268ece5b90bb6cf6fcb5c4e8f9b6a1e.zip
Sleep timer options: persistent duration and start on boot.
This makes the sleep timer persistent, so that the duration is remembered across reboots. Additionally, it adds a setting to automatically apply it at boot. Flyspray: FS#10849 Author: Nick Peskett git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30777 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r--apps/root_menu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 3b94d88751..1e9924fb44 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -660,6 +660,9 @@ void root_menu(void)
next_screen = GO_TO_ROOT;
#endif
+ if (global_settings.sleeptimer_on_startup)
+ set_sleep_timer(global_settings.sleeptimer_duration * 60);
+
while (true)
{
switch (next_screen)