From f24271c73c32f0bb9443819de643574891ecd5ba Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sat, 20 Jul 2024 08:19:14 -0400 Subject: [Bugfix] Plugin Viewer Don't display SYSTEM folders or Volumes recent changes added first level folders to the plugin viewer inserting a drive enumerates new folders into the namespace of the plugin viewer filter these entries OUT Change-Id: I53c383584511b54940f9dffec4737107a69f6673 --- apps/filetree.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/filetree.c b/apps/filetree.c index eadb19ea59..6a06fcd5ad 100644 --- a/apps/filetree.c +++ b/apps/filetree.c @@ -348,6 +348,12 @@ int ft_load(struct tree_context* c, const char* tempdir) continue; } + if (*c->dirfilter == SHOW_PLUGINS && (dptr->attr & ATTR_DIRECTORY) && + (dptr->attr & + (ATTR_HIDDEN | ATTR_SYSTEM | ATTR_VOLUME_ID | ATTR_VOLUME)) != 0) { + continue; /* skip non plugin folders */ + } + /* check for known file types */ if ( !(dir_attr) ) dptr->attr |= filetype_get_attr((char *)entry->d_name); -- cgit v1.2.3