mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-20 02:22:43 -05:00
FM preset menu: store current preset immediately after leaving.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6265 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cef15c6efc
commit
c194fab162
1 changed files with 2 additions and 3 deletions
|
|
@ -804,7 +804,6 @@ int handle_radio_presets_cb(int key, int m)
|
||||||
bool handle_radio_presets(void)
|
bool handle_radio_presets(void)
|
||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
int i;
|
|
||||||
bool reload_dir = false;
|
bool reload_dir = false;
|
||||||
|
|
||||||
if(presets_loaded)
|
if(presets_loaded)
|
||||||
|
|
@ -828,8 +827,8 @@ bool handle_radio_presets(void)
|
||||||
|
|
||||||
if (result >= 0) /* A preset was selected */
|
if (result >= 0) /* A preset was selected */
|
||||||
{
|
{
|
||||||
i = menu_cursor(preset_menu);
|
curr_preset = menu_cursor(preset_menu);
|
||||||
curr_freq = presets[i].frequency;
|
curr_freq = presets[curr_preset].frequency;
|
||||||
radio_set(RADIO_FREQUENCY, curr_freq);
|
radio_set(RADIO_FREQUENCY, curr_freq);
|
||||||
remember_frequency();
|
remember_frequency();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue