possibly fix system file picker filter on macOS
This commit is contained in:
parent
59bcd9599f
commit
1e2cafcf90
5
extern/nfd-modified/src/nfd_cocoa.mm
vendored
5
extern/nfd-modified/src/nfd_cocoa.mm
vendored
|
@ -23,7 +23,12 @@ static NSArray *BuildAllowedFileTypes( const std::vector<std::string>& filterLis
|
||||||
NSMutableArray *buildFilterList = [[NSMutableArray alloc] init];
|
NSMutableArray *buildFilterList = [[NSMutableArray alloc] init];
|
||||||
|
|
||||||
std::string typebuf;
|
std::string typebuf;
|
||||||
|
int index=-1;
|
||||||
for (const std::string& i: filterList) {
|
for (const std::string& i: filterList) {
|
||||||
|
index++;
|
||||||
|
if (!(index&1)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
typebuf="";
|
typebuf="";
|
||||||
for (const char& j: i) {
|
for (const char& j: i) {
|
||||||
if (j==' ' || j==',' || j ==';') {
|
if (j==' ' || j==',' || j ==';') {
|
||||||
|
|
Loading…
Reference in a new issue