only display set rating menu entry if "gather runtime data" is enabled (was removed with jdGordon's last commit).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15538 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ca4771b40c
commit
987faeaecd
1 changed files with 13 additions and 1 deletions
|
@ -964,9 +964,21 @@ static int set_rating_inline(void)
|
|||
gui_syncsplash(HZ*2, ID2P(LANG_ID3_NO_INFO));
|
||||
return 0;
|
||||
}
|
||||
static int ratingitem_callback(int action,const struct menu_item_ex *this_item)
|
||||
{
|
||||
(void)this_item;
|
||||
switch (action)
|
||||
{
|
||||
case ACTION_REQUEST_MENUITEM:
|
||||
if (!selected_file || !global_settings.runtimedb)
|
||||
return ACTION_EXIT_MENUITEM;
|
||||
break;
|
||||
}
|
||||
return action;
|
||||
}
|
||||
MENUITEM_FUNCTION(rating_item, 0, ID2P(LANG_MENU_SET_RATING),
|
||||
set_rating_inline, NULL,
|
||||
NULL, Icon_Questionmark);
|
||||
ratingitem_callback, Icon_Questionmark);
|
||||
#endif
|
||||
|
||||
static bool view_cue(void)
|
||||
|
|
Loading…
Reference in a new issue