diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-07-20 08:19:14 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2024-07-20 08:19:14 -0400 |
commit | f24271c73c32f0bb9443819de643574891ecd5ba (patch) | |
tree | f124117ffc2f80ab04e4b4510730fbf8b04979fc /apps/filetree.c | |
parent | 7e90760a48a0dcd0e6d7133022ffb1736083dd46 (diff) | |
download | rockbox-f24271c73c32f0bb9443819de643574891ecd5ba.tar.gz rockbox-f24271c73c32f0bb9443819de643574891ecd5ba.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
Diffstat (limited to 'apps/filetree.c')
-rw-r--r-- | apps/filetree.c | 6 |
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) | |||
348 | continue; | 348 | continue; |
349 | } | 349 | } |
350 | 350 | ||
351 | if (*c->dirfilter == SHOW_PLUGINS && (dptr->attr & ATTR_DIRECTORY) && | ||
352 | (dptr->attr & | ||
353 | (ATTR_HIDDEN | ATTR_SYSTEM | ATTR_VOLUME_ID | ATTR_VOLUME)) != 0) { | ||
354 | continue; /* skip non plugin folders */ | ||
355 | } | ||
356 | |||
351 | /* check for known file types */ | 357 | /* check for known file types */ |
352 | if ( !(dir_attr) ) | 358 | if ( !(dir_attr) ) |
353 | dptr->attr |= filetype_get_attr((char *)entry->d_name); | 359 | dptr->attr |= filetype_get_attr((char *)entry->d_name); |