IGFD: fix .* filter with label

This commit is contained in:
tildearrow 2023-09-01 19:59:43 -05:00
parent 1c171ed7bd
commit 716d42ee6d
2 changed files with 3 additions and 1 deletions

View File

@ -720,6 +720,7 @@ namespace IGFD
auto arr = IGFD::Utils::SplitStringToVector(fs, ',', false);
for (auto a : arr)
{
infos.firstFilter=a;
infos.collectionfilters.emplace(a);
}
}
@ -1048,7 +1049,7 @@ namespace IGFD
// check if current file extention is covered by current filter
// we do that here, for avoid doing that during filelist display
// for better fps
if (prSelectedFilter.exist(vTag) || prSelectedFilter.filter == ".*")
if (prSelectedFilter.exist(vTag) || prSelectedFilter.firstFilter == ".*")
{
return true;
}

View File

@ -745,6 +745,7 @@ namespace IGFD
{
public:
std::string filter;
std::string firstFilter;
std::set<std::string> collectionfilters;
public: