possibly fix system file picker filter on macOS

This commit is contained in:
tildearrow 2022-07-01 14:05:37 -05:00
parent 59bcd9599f
commit 1e2cafcf90
1 changed files with 5 additions and 0 deletions

View File

@ -23,7 +23,12 @@ static NSArray *BuildAllowedFileTypes( const std::vector<std::string>& filterLis
NSMutableArray *buildFilterList = [[NSMutableArray alloc] init];
std::string typebuf;
int index=-1;
for (const std::string& i: filterList) {
index++;
if (!(index&1)) {
continue;
}
typebuf="";
for (const char& j: i) {
if (j==' ' || j==',' || j ==';') {