summaryrefslogtreecommitdiff
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-bcd34cfaa7d4feb2245aaab3b94dec648c682010.tar.gz
rockbox-bcd34cfaa7d4feb2245aaab3b94dec648c682010.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,
1442 return (clipboard.path[0] != 0) ? 1442 return (clipboard.path[0] != 0) ?
1443 action : ACTION_EXIT_MENUITEM; 1443 action : ACTION_EXIT_MENUITEM;
1444 } 1444 }
1445 else if (this_item == &create_dir_item) 1445 else if (this_item == &create_dir_item &&
1446 *tree_get_context()->dirfilter <= NUM_FILTER_MODES)
1446 { 1447 {
1447 /* always visible */
1448 return action; 1448 return action;
1449 } 1449 }
1450 else if (selected_file) 1450 else if (selected_file)