Reload directory on switching out of ID3 Database view. Stops the file browser from crashing in the sim and may fix FS#5521. Also turn off the list title in ID3 DB view.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10604 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
475be662a7
commit
86ca85bef7
1 changed files with 6 additions and 0 deletions
|
@ -359,6 +359,11 @@ static int update_dir(void)
|
|||
gui_synclist_set_title(&tree_lists, NULL);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* This currently doesn't work too well in id3db so turn it off */
|
||||
gui_synclist_set_title(&tree_lists, NULL);
|
||||
}
|
||||
gui_synclist_set_nb_items(&tree_lists, tc.filesindir);
|
||||
gui_synclist_set_icon_callback(&tree_lists,
|
||||
global_settings.show_icons?&tree_get_fileicon:NULL);
|
||||
|
@ -519,6 +524,7 @@ static bool check_changed_id3mode(bool currmode)
|
|||
{
|
||||
curr_context=CONTEXT_TREE;
|
||||
ft_load(&tc, NULL);
|
||||
reload_dir = true;
|
||||
}
|
||||
}
|
||||
return currmode;
|
||||
|
|
Loading…
Reference in a new issue