mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
[bugfix] FS#13456 - Loaded FM preset list doesn't restore after restart
the fmr file wasn't being detected on multivolume targets the global preset list couldn't be cleared once set empty global preset file wasn't detected properly either Change-Id: I9c4b40ed0b6f3dbb0d38eb668fc74a512ea34062
This commit is contained in:
parent
277c66d9d2
commit
14898bc19e
3 changed files with 23 additions and 29 deletions
|
@ -635,25 +635,8 @@ int ft_enter(struct tree_context* c)
|
|||
#if CONFIG_TUNER
|
||||
/* fmr preset file */
|
||||
case FILE_ATTR_FMR:
|
||||
splash(0, ID2P(LANG_WAIT));
|
||||
|
||||
/* Preset inside the default folder. */
|
||||
if(!strncasecmp(FMPRESET_PATH, buf, strlen(FMPRESET_PATH)))
|
||||
{
|
||||
set_file(buf, global_settings.fmr_file, MAX_FILENAME);
|
||||
radio_load_presets(global_settings.fmr_file);
|
||||
}
|
||||
/*
|
||||
* Preset outside default folder, we can choose such only
|
||||
* if we are out of the radio screen, so the check for the
|
||||
* radio status isn't neccessary
|
||||
*/
|
||||
else
|
||||
{
|
||||
radio_load_presets(buf);
|
||||
}
|
||||
radio_load_presets(buf);
|
||||
rc = GO_TO_FM;
|
||||
|
||||
break;
|
||||
case FILE_ATTR_FMS:
|
||||
ft_apply_skin_file(buf, global_settings.fms_file, MAX_FILENAME);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue