diff options
author | Nick Peskett <rockbox@peskett.co.uk> | 2012-03-19 09:56:38 +0000 |
---|---|---|
committer | Nick Peskett <rockbox@peskett.co.uk> | 2012-03-19 11:49:55 +0100 |
commit | be10817e1c09d5a41710435cf6d58deb6dde9301 (patch) | |
tree | 4635fcb1ab51d2ef6dc1db28db045c369cf1abaf /apps/settings_list.c | |
parent | 69978d7046cd7e537c5079a5e306d22621a1767a (diff) | |
download | rockbox-be10817e1c09d5a41710435cf6d58deb6dde9301.tar.gz rockbox-be10817e1c09d5a41710435cf6d58deb6dde9301.zip |
Option to constrain get_next_dir() to directories below global_settings.start_directory.
When enabled, if the user has set "Start File Browser Here" (config.cfg:
start directory) to anything other than root and "Auto-Change Directory"
is set to "Yes" or "Random", the directory returned when an auto change
is required will be constrained to the value of "start directory" or below.
Change-Id: Iaab773868c4cab5a54f6ae67bdb22e84642a9e4b
Reviewed-on: http://gerrit.rockbox.org/182
Reviewed-by: Nick Peskett <rockbox@peskett.co.uk>
Tested-by: Nick Peskett <rockbox@peskett.co.uk>
Diffstat (limited to 'apps/settings_list.c')
-rw-r--r-- | apps/settings_list.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c index 2258582a78..5acebef2a5 100644 --- a/apps/settings_list.c +++ b/apps/settings_list.c | |||
@@ -1328,6 +1328,9 @@ const struct settings_list settings[] = { | |||
1328 | "folder navigation", "off,on,random",NULL ,3, | 1328 | "folder navigation", "off,on,random",NULL ,3, |
1329 | ID2P(LANG_SET_BOOL_NO), ID2P(LANG_SET_BOOL_YES), | 1329 | ID2P(LANG_SET_BOOL_NO), ID2P(LANG_SET_BOOL_YES), |
1330 | ID2P(LANG_RANDOM)), | 1330 | ID2P(LANG_RANDOM)), |
1331 | BOOL_SETTING(0, constrain_next_folder, LANG_CONSTRAIN_NEXT_FOLDER, false, | ||
1332 | "constrain next folder", off_on, | ||
1333 | LANG_SET_BOOL_YES, LANG_SET_BOOL_NO, NULL), | ||
1331 | 1334 | ||
1332 | #ifdef HAVE_TAGCACHE | 1335 | #ifdef HAVE_TAGCACHE |
1333 | #if CONFIG_CODEC == SWCODEC | 1336 | #if CONFIG_CODEC == SWCODEC |