From be10817e1c09d5a41710435cf6d58deb6dde9301 Mon Sep 17 00:00:00 2001 From: Nick Peskett Date: Mon, 19 Mar 2012 09:56:38 +0000 Subject: 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 Tested-by: Nick Peskett --- apps/settings_list.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/settings_list.c') 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[] = { "folder navigation", "off,on,random",NULL ,3, ID2P(LANG_SET_BOOL_NO), ID2P(LANG_SET_BOOL_YES), ID2P(LANG_RANDOM)), + BOOL_SETTING(0, constrain_next_folder, LANG_CONSTRAIN_NEXT_FOLDER, false, + "constrain next folder", off_on, + LANG_SET_BOOL_YES, LANG_SET_BOOL_NO, NULL), #ifdef HAVE_TAGCACHE #if CONFIG_CODEC == SWCODEC -- cgit v1.2.3