forked from len0rd/rockbox
fix FS#8860 - File browser context menu shows unnecessary items in an empty directory
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17047 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
afc39fbfd7
commit
f617ba4a43
1 changed files with 8 additions and 4 deletions
|
@ -1077,16 +1077,20 @@ static int clipboard_callback(int action,const struct menu_item_ex *this_item)
|
||||||
return (clipboard_selection[0] != 0) ?
|
return (clipboard_selection[0] != 0) ?
|
||||||
action : ACTION_EXIT_MENUITEM;
|
action : ACTION_EXIT_MENUITEM;
|
||||||
}
|
}
|
||||||
else if ((this_item == &create_dir_item) ||
|
else if (this_item == &create_dir_item)
|
||||||
(this_item == &properties_item) ||
|
{
|
||||||
|
/* always visible */
|
||||||
|
return action;
|
||||||
|
}
|
||||||
|
else if ((this_item == &properties_item) ||
|
||||||
(this_item == &rename_file_item) ||
|
(this_item == &rename_file_item) ||
|
||||||
(this_item == &clipboard_cut_item) ||
|
(this_item == &clipboard_cut_item) ||
|
||||||
(this_item == &clipboard_copy_item) ||
|
(this_item == &clipboard_copy_item) ||
|
||||||
(this_item == &add_to_faves_item)
|
(this_item == &add_to_faves_item)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* always visible */
|
/* requires an actual file */
|
||||||
return action;
|
return (selected_file) ? action : ACTION_EXIT_MENUITEM;
|
||||||
}
|
}
|
||||||
#if LCD_DEPTH > 1
|
#if LCD_DEPTH > 1
|
||||||
else if (this_item == &set_backdrop_item)
|
else if (this_item == &set_backdrop_item)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue