summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2024-05-30 00:14:03 +0200
committerChristian Soffke <christian.soffke@gmail.com>2024-06-01 12:40:45 -0400
commitbcd34cfaa7d4feb2245aaab3b94dec648c682010 (patch)
treebfa567803656d5ff8e93f9c04f5b9912f3d896ee
parent507fa214a8dab04180031823bd5009da8638423c (diff)
downloadrockbox-bcd34cfaa7.tar.gz
rockbox-bcd34cfaa7.zip
playlist catalogue (etc.): prune context menu
"Create Directory" option not applicable in browse filter modes, since directories do not get displayed Change-Id: I68944264b03115f7f94254d9df766e5584d30e5a
-rw-r--r--apps/onplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 2a2ac16b04..572138e583 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -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)