diff options
| author | Steve Bavin <pondlife@pondlife.me> | 2007-03-01 17:34:49 +0000 |
|---|---|---|
| committer | Steve Bavin <pondlife@pondlife.me> | 2007-03-01 17:34:49 +0000 |
| commit | 4af338682baa869c5a8df7f04a0c390c164416d1 (patch) | |
| tree | 7a02f3362a14e208c597e08d51abf6bd296caeab | |
| parent | ba7d27786d1af8d3843edde0fb3cea5be4a2cb37 (diff) | |
| download | rockbox-4af338682baa869c5a8df7f04a0c390c164416d1.zip rockbox-4af338682baa869c5a8df7f04a0c390c164416d1.tar.gz rockbox-4af338682baa869c5a8df7f04a0c390c164416d1.tar.bz2 rockbox-4af338682baa869c5a8df7f04a0c390c164416d1.tar.xz | |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c index d21ae13..ac64fff 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, |