Fix file filters in Mac file-open dialogs

This commit is contained in:
Henrik Rydgård committed 2023-07-16 15:22:04 +02:00
1 parent de20a5692f
commit 0ae2f5ccbf
4 files changed
+44 -20

No files matched your search

+2 -1
View File
@@ -244,7 +244,8 @@ bool System_MakeRequest(SystemRequestType type, int requestId, const std::string
}
};
DarwinFileSystemServices services;
services.presentDirectoryPanel(callback, /* allowFiles = */ true, /* allowDirectories = */ false);
BrowseFileType fileType = (BrowseFileType)param3;
services.presentDirectoryPanel(callback, /* allowFiles = */ true, /* allowDirectories = */ false, fileType);
return true;
}
case SystemRequestType::BROWSE_FOR_FOLDER: