forked from len0rd/rockbox
Dont show the playlist catalog item in the file context menu unless the file is audio or a m3u(8).
Mentinoed in FS#8752 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17106 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0257547d58
commit
dada3242d5
1 changed files with 7 additions and 0 deletions
|
@ -261,6 +261,13 @@ MAKE_MENU( cat_playlist_menu, ID2P(LANG_CATALOG), cat_playlist_callback,
|
|||
static int cat_playlist_callback(int action,
|
||||
const struct menu_item_ex *this_item)
|
||||
{
|
||||
if (((selected_file_attr & FILE_ATTR_MASK) != FILE_ATTR_AUDIO) &&
|
||||
((selected_file_attr & FILE_ATTR_MASK) != FILE_ATTR_M3U) &&
|
||||
((selected_file_attr & ATTR_DIRECTORY) == 0))
|
||||
{
|
||||
return ACTION_EXIT_MENUITEM;
|
||||
}
|
||||
|
||||
switch (action)
|
||||
{
|
||||
case ACTION_REQUEST_MENUITEM:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue