diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-19 12:36:21 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-19 12:36:21 +0000 |
commit | 1e6b227164da279ed83be7f1413880c3553b8614 (patch) | |
tree | 833e9365bdfed96b669b45f9706dc84680b02b3d /apps/tree.c | |
parent | ba34c379676f629d94b80d0c4076e6b08ade171e (diff) | |
download | rockbox-1e6b227164da279ed83be7f1413880c3553b8614.tar.gz rockbox-1e6b227164da279ed83be7f1413880c3553b8614.zip |
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
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 23 |
1 files changed, 17 insertions, 6 deletions
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) | |||
349 | gui_syncsplash(HZ, true, str(LANG_SHOWDIR_BUFFER_FULL)); | 349 | gui_syncsplash(HZ, true, str(LANG_SHOWDIR_BUFFER_FULL)); |
350 | } | 350 | } |
351 | } | 351 | } |
352 | if (!id3db) { | 352 | if (id3db) |
353 | { | ||
354 | if (global_settings.show_path_in_browser == SHOW_PATH_FULL | ||
355 | || global_settings.show_path_in_browser == SHOW_PATH_CURRENT) | ||
356 | { | ||
357 | gui_synclist_set_title(&tree_lists, tagtree_get_title(&tc), | ||
358 | filetype_get_icon(ATTR_DIRECTORY)); | ||
359 | } | ||
360 | else | ||
361 | { | ||
362 | /* Must clear the title as the list is reused */ | ||
363 | gui_synclist_set_title(&tree_lists, NULL, NOICON); | ||
364 | } | ||
365 | } | ||
366 | else | ||
367 | { | ||
353 | if (global_settings.show_path_in_browser == SHOW_PATH_FULL) | 368 | if (global_settings.show_path_in_browser == SHOW_PATH_FULL) |
354 | { | 369 | { |
355 | gui_synclist_set_title(&tree_lists, tc.currdir, | 370 | gui_synclist_set_title(&tree_lists, tc.currdir, |
@@ -373,11 +388,7 @@ static int update_dir(void) | |||
373 | gui_synclist_set_title(&tree_lists, NULL, NOICON); | 388 | gui_synclist_set_title(&tree_lists, NULL, NOICON); |
374 | } | 389 | } |
375 | } | 390 | } |
376 | else | 391 | |
377 | { | ||
378 | /* This currently doesn't work too well in id3db so turn it off */ | ||
379 | gui_synclist_set_title(&tree_lists, NULL, NOICON); | ||
380 | } | ||
381 | gui_synclist_set_nb_items(&tree_lists, tc.filesindir); | 392 | gui_synclist_set_nb_items(&tree_lists, tc.filesindir); |
382 | gui_synclist_set_icon_callback(&tree_lists, | 393 | gui_synclist_set_icon_callback(&tree_lists, |
383 | global_settings.show_icons?&tree_get_fileicon:NULL); | 394 | global_settings.show_icons?&tree_get_fileicon:NULL); |