summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2024-07-20 08:19:14 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2024-07-20 08:19:14 -0400
commitf24271c73c32f0bb9443819de643574891ecd5ba (patch)
treef124117ffc2f80ab04e4b4510730fbf8b04979fc
parent7e90760a48a0dcd0e6d7133022ffb1736083dd46 (diff)
downloadrockbox-f24271c73c.tar.gz
rockbox-f24271c73c.zip
[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
-rw-r--r--apps/filetree.c6
1 files changed, 6 insertions, 0 deletions
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);