summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c23
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);