From bcd34cfaa7d4feb2245aaab3b94dec648c682010 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Thu, 30 May 2024 00:14:03 +0200 Subject: playlist catalogue (etc.): prune context menu "Create Directory" option not applicable in browse filter modes, since directories do not get displayed Change-Id: I68944264b03115f7f94254d9df766e5584d30e5a --- apps/onplay.c | 4 ++-- 1 file 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) -- cgit v1.2.3