playlist catalog: Hide Copy/Cut/Open With

It may make sense to only show these in the
file browser, where you'd expect to do more
general file operations involving other folders.

Change-Id: I008569d2017811ee54b4449acb30359843f35294
This commit is contained in:
Christian Soffke 2025-04-19 00:46:28 +02:00 committed by Solomon Peachy
parent b7b20c4a77
commit ae54b06af4

View file

@ -1049,9 +1049,13 @@ static int clipboard_callback(int action,
else if (selected_file.path) else if (selected_file.path)
{ {
/* requires an actual file */ /* requires an actual file */
if (this_item == &rename_file_item || if (this_item == &clipboard_cut_item ||
this_item == &clipboard_cut_item || this_item == &clipboard_copy_item)
this_item == &clipboard_copy_item || {
if (*tree_get_context()->dirfilter != SHOW_M3U)
return action;
}
else if (this_item == &rename_file_item ||
(this_item == &track_info_item && (this_item == &track_info_item &&
(selected_file.attr & FILE_ATTR_MASK) == FILE_ATTR_AUDIO) || (selected_file.attr & FILE_ATTR_MASK) == FILE_ATTR_AUDIO) ||
(this_item == &properties_item && (this_item == &properties_item &&
@ -1076,12 +1080,14 @@ static int clipboard_callback(int action,
) )
return action; return action;
} }
else if (this_item == &delete_file_item ||
this_item == &list_viewers_item)
{
/* only for files */ /* only for files */
return action; else if (this_item == &list_viewers_item)
{
if (*tree_get_context()->dirfilter != SHOW_M3U)
return action;
} }
else if (this_item == &delete_file_item)
return action;
#if LCD_DEPTH > 1 #if LCD_DEPTH > 1
else if (this_item == &set_backdrop_item) else if (this_item == &set_backdrop_item)
{ {