mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
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:
parent
b7b20c4a77
commit
ae54b06af4
1 changed files with 13 additions and 7 deletions
|
@ -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 */
|
||||||
|
else if (this_item == &list_viewers_item)
|
||||||
|
{
|
||||||
|
if (*tree_get_context()->dirfilter != SHOW_M3U)
|
||||||
return action;
|
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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue