[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
This commit is contained in:
William Wilgus 2024-07-20 08:19:14 -04:00
parent 7e90760a48
commit f24271c73c

View file

@ -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);