1
0
Fork 0
forked from len0rd/rockbox

playlist catalogue (etc.): prune context menu

"Create Directory" option not applicable
in browse filter modes, since directories
do not get displayed

Change-Id: I68944264b03115f7f94254d9df766e5584d30e5a
This commit is contained in:
Christian Soffke 2024-05-30 00:14:03 +02:00
parent 507fa214a8
commit bcd34cfaa7

View file

@ -1442,9 +1442,9 @@ static int clipboard_callback(int action,
return (clipboard.path[0] != 0) ?
action : ACTION_EXIT_MENUITEM;
}
else if (this_item == &create_dir_item)
else if (this_item == &create_dir_item &&
*tree_get_context()->dirfilter <= NUM_FILTER_MODES)
{
/* always visible */
return action;
}
else if (selected_file)