forked from len0rd/rockbox
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
This commit is contained in:
parent
967431691d
commit
c8c80a5391
1 changed files with 5 additions and 2 deletions
|
|
@ -65,7 +65,7 @@
|
||||||
#include "recording.h"
|
#include "recording.h"
|
||||||
|
|
||||||
|
|
||||||
static bool no_source_in_menu = true;
|
static bool no_source_in_menu = false;
|
||||||
int recmenu_callback(int action,const struct menu_item_ex *this_item);
|
int recmenu_callback(int action,const struct menu_item_ex *this_item);
|
||||||
|
|
||||||
static int recsource_func(void)
|
static int recsource_func(void)
|
||||||
|
|
@ -846,8 +846,11 @@ MAKE_MENU(recording_settings_menu, ID2P(LANG_RECORDING_SETTINGS),
|
||||||
|
|
||||||
bool recording_menu(bool no_source)
|
bool recording_menu(bool no_source)
|
||||||
{
|
{
|
||||||
|
bool retval;
|
||||||
no_source_in_menu = no_source;
|
no_source_in_menu = no_source;
|
||||||
return do_menu(&recording_settings_menu, NULL) == MENU_ATTACHED_USB;
|
retval = do_menu(&recording_settings_menu, NULL) == MENU_ATTACHED_USB;
|
||||||
|
no_source_in_menu = false; /* always fall back to the default */
|
||||||
|
return retval;
|
||||||
};
|
};
|
||||||
|
|
||||||
MENUITEM_FUNCTION(recording_settings, MENU_FUNC_USEPARAM, ID2P(LANG_RECORDING_SETTINGS),
|
MENUITEM_FUNCTION(recording_settings, MENU_FUNC_USEPARAM, ID2P(LANG_RECORDING_SETTINGS),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue