From 1e6b227164da279ed83be7f1413880c3553b8614 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Tue, 19 Sep 2006 12:36:21 +0000 Subject: Properly set list title in tagcache mode and removed one incorrect entry from tagnavi.config. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11001 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index 584aaa8006..4b23bbef89 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -349,7 +349,22 @@ static int update_dir(void) gui_syncsplash(HZ, true, str(LANG_SHOWDIR_BUFFER_FULL)); } } - if (!id3db) { + if (id3db) + { + if (global_settings.show_path_in_browser == SHOW_PATH_FULL + || global_settings.show_path_in_browser == SHOW_PATH_CURRENT) + { + gui_synclist_set_title(&tree_lists, tagtree_get_title(&tc), + filetype_get_icon(ATTR_DIRECTORY)); + } + else + { + /* Must clear the title as the list is reused */ + gui_synclist_set_title(&tree_lists, NULL, NOICON); + } + } + else + { if (global_settings.show_path_in_browser == SHOW_PATH_FULL) { gui_synclist_set_title(&tree_lists, tc.currdir, @@ -373,11 +388,7 @@ static int update_dir(void) gui_synclist_set_title(&tree_lists, NULL, NOICON); } } - else - { - /* This currently doesn't work too well in id3db so turn it off */ - gui_synclist_set_title(&tree_lists, NULL, NOICON); - } + gui_synclist_set_nb_items(&tree_lists, tc.filesindir); gui_synclist_set_icon_callback(&tree_lists, global_settings.show_icons?&tree_get_fileicon:NULL); -- cgit v1.2.3