summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 53aca47d49..1f76994968 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -202,7 +202,8 @@ bool check_rockboxdir(void)
202 return true; 202 return true;
203} 203}
204 204
205void browse_root(void) 205/* do this really late in the init sequence */
206void tree_gui_init(void)
206{ 207{
207 gui_sync_wps_screen_init(); 208 gui_sync_wps_screen_init();
208 209
@@ -222,8 +223,6 @@ void browse_root(void)
222#endif 223#endif
223 gui_synclist_init(&tree_lists, &tree_get_filename, &tc, false, 1); 224 gui_synclist_init(&tree_lists, &tree_get_filename, &tc, false, 1);
224 gui_synclist_set_icon_callback(&tree_lists, &tree_get_fileicon); 225 gui_synclist_set_icon_callback(&tree_lists, &tree_get_fileicon);
225 /* not the best place for this call... but... */
226 root_menu();
227} 226}
228 227
229 228
@@ -1078,7 +1077,7 @@ int rockbox_browse(const char *root, int dirfilter)
1078 return ret_val; 1077 return ret_val;
1079} 1078}
1080 1079
1081void tree_init(void) 1080void tree_mem_init(void)
1082{ 1081{
1083 /* We copy the settings value in case it is changed by the user. We can't 1082 /* We copy the settings value in case it is changed by the user. We can't
1084 use it until the next reboot. */ 1083 use it until the next reboot. */