forked from len0rd/rockbox
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
This commit is contained in:
parent
ba34c37967
commit
1e6b227164
4 changed files with 35 additions and 7 deletions
23
apps/tree.c
23
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue