summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2007-03-01 17:34:49 +0000
committerSteve Bavin <pondlife@pondlife.me>2007-03-01 17:34:49 +0000
commit4af338682baa869c5a8df7f04a0c390c164416d1 (patch)
tree7a02f3362a14e208c597e08d51abf6bd296caeab
parentba7d27786d1af8d3843edde0fb3cea5be4a2cb37 (diff)
downloadrockbox-4af338682baa869c5a8df7f04a0c390c164416d1.tar.gz
rockbox-4af338682baa869c5a8df7f04a0c390c164416d1.zip
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
-rw-r--r--apps/tree.c5
1 files 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)
398 char *title = strrchr(tc.currdir, '/') + 1; 398 char *title = strrchr(tc.currdir, '/') + 1;
399 if (*title == '\0') 399 if (*title == '\0')
400 { 400 {
401 /* Display nothing for the root dir */ 401 /* Display "Files" for the root dir */
402 gui_synclist_set_title(&tree_lists, NULL, NOICON); 402 gui_synclist_set_title(&tree_lists, str(LANG_DIR_BROWSER),
403 global_settings.show_icons?filetype_get_icon(ATTR_DIRECTORY):(ICON)NULL);
403 } 404 }
404 else 405 else
405 gui_synclist_set_title(&tree_lists, title, 406 gui_synclist_set_title(&tree_lists, title,