From 4af338682baa869c5a8df7f04a0c390c164416d1 Mon Sep 17 00:00:00 2001 From: Steve Bavin Date: Thu, 1 Mar 2007 17:34:49 +0000 Subject: 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 --- apps/tree.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/tree.c b/apps/tree.c index d21ae13016..ac64fff1f5 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -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, -- cgit v1.2.3