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:
parent
ba7d27786d
commit
4af338682b
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue