For consistency, put a file browser heading up in the root folder if configured for current level only. (Previously this one case omitted the heading.)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12538 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Steve Bavin 2007-03-01 17:34:49 +00:00
parent ba7d27786d
commit 4af338682b

View file

@ -398,8 +398,9 @@ static int update_dir(void)
char *title = strrchr(tc.currdir, '/') + 1;
if (*title == '\0')
{
/* Display nothing for the root dir */
gui_synclist_set_title(&tree_lists, NULL, NOICON);
/* Display "Files" for the root dir */
gui_synclist_set_title(&tree_lists, str(LANG_DIR_BROWSER),
global_settings.show_icons?filetype_get_icon(ATTR_DIRECTORY):(ICON)NULL);
}
else
gui_synclist_set_title(&tree_lists, title,