From cef15c6efc2a0720a8b9b27cea036fc6ac82c829 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 10 Apr 2005 17:36:55 +0000 Subject: FM preset menu: Set cursor to the current preset on enter. Added a generic function to the menu system which allows for setting the position. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6264 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/radio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/recorder/radio.c') diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index 10a513f01f..59dd9dc37f 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c @@ -817,6 +817,8 @@ bool handle_radio_presets(void) str(LANG_FM_BUTTONBAR_ADD), str(LANG_FM_BUTTONBAR_EXIT), str(LANG_FM_BUTTONBAR_ACTION)); + if (curr_preset >= 0) + menu_set_cursor(preset_menu, curr_preset); result = menu_show(preset_menu); menu_exit(preset_menu); if (result == MENU_SELECTED_EXIT) -- cgit v1.2.3