diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-08-09 00:33:33 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-08-09 00:33:33 +0000 |
commit | c8c80a5391d028e0ee40432568f0a40eb623b249 (patch) | |
tree | 0086336c0c187cf737959172012d1da97e157ad4 /apps/menus | |
parent | 967431691dd2388d3583518147a0b9adb2f0ec21 (diff) | |
download | rockbox-c8c80a5391d028e0ee40432568f0a40eb623b249.tar.gz rockbox-c8c80a5391d028e0ee40432568f0a40eb623b249.zip |
Allow recording source to be set from recording context menu. Not a very nice solution for something that already was an ugly hack...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14251 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus')
-rw-r--r-- | apps/menus/recording_menu.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/menus/recording_menu.c b/apps/menus/recording_menu.c index d53d42ddfa..e2be128d2d 100644 --- a/apps/menus/recording_menu.c +++ b/apps/menus/recording_menu.c | |||
@@ -65,7 +65,7 @@ | |||
65 | #include "recording.h" | 65 | #include "recording.h" |
66 | 66 | ||
67 | 67 | ||
68 | static bool no_source_in_menu = true; | 68 | static bool no_source_in_menu = false; |
69 | int recmenu_callback(int action,const struct menu_item_ex *this_item); | 69 | int recmenu_callback(int action,const struct menu_item_ex *this_item); |
70 | 70 | ||
71 | static int recsource_func(void) | 71 | static int recsource_func(void) |
@@ -846,8 +846,11 @@ MAKE_MENU(recording_settings_menu, ID2P(LANG_RECORDING_SETTINGS), | |||
846 | 846 | ||
847 | bool recording_menu(bool no_source) | 847 | bool recording_menu(bool no_source) |
848 | { | 848 | { |
849 | bool retval; | ||
849 | no_source_in_menu = no_source; | 850 | no_source_in_menu = no_source; |
850 | return do_menu(&recording_settings_menu, NULL) == MENU_ATTACHED_USB; | 851 | retval = do_menu(&recording_settings_menu, NULL) == MENU_ATTACHED_USB; |
852 | no_source_in_menu = false; /* always fall back to the default */ | ||
853 | return retval; | ||
851 | }; | 854 | }; |
852 | 855 | ||
853 | MENUITEM_FUNCTION(recording_settings, MENU_FUNC_USEPARAM, ID2P(LANG_RECORDING_SETTINGS), | 856 | MENUITEM_FUNCTION(recording_settings, MENU_FUNC_USEPARAM, ID2P(LANG_RECORDING_SETTINGS), |