summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 5b9d5b04a6..bfeac6c545 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -229,7 +229,9 @@ void browse_root(void)
229 gui_buttonbar_set_display(&tree_buttonbar, &(screens[SCREEN_MAIN]) ); 229 gui_buttonbar_set_display(&tree_buttonbar, &(screens[SCREEN_MAIN]) );
230#endif 230#endif
231 gui_syncstatusbar_init(&statusbars); 231 gui_syncstatusbar_init(&statusbars);
232 gui_synclist_init(&tree_lists, &tree_get_fileicon, &tree_get_filename, &tc); 232 gui_synclist_init(&tree_lists, &tree_get_filename, &tc);
233 gui_synclist_set_icon_callback(&tree_lists,
234 global_settings.show_icons?&tree_get_fileicon:NULL);
233#ifndef SIMULATOR 235#ifndef SIMULATOR
234 dirbrowse(); 236 dirbrowse();
235#else 237#else
@@ -338,6 +340,8 @@ static int update_dir(void)
338 } 340 }
339 } 341 }
340 gui_synclist_set_nb_items(&tree_lists, tc.filesindir); 342 gui_synclist_set_nb_items(&tree_lists, tc.filesindir);
343 gui_synclist_set_icon_callback(&tree_lists,
344 global_settings.show_icons?&tree_get_fileicon:NULL);
341 if( tc.selected_item >= tc.filesindir) 345 if( tc.selected_item >= tc.filesindir)
342 tc.selected_item=tc.filesindir-1; 346 tc.selected_item=tc.filesindir-1;
343 347