Merge pull request #9745 from yuya-oc/input-allow-all-files

Add 'All Files (*.*)' filter for <input> file dialog
This commit is contained in:
Kevin Sawicki 2017-07-14 10:41:11 -07:00 committed by GitHub
commit 720755e124

View file

@ -147,6 +147,12 @@ file_dialog::Filters GetFileTypesFromAcceptType(
filters[0].second.push_back(extension);
#endif
}
// Allow all files when extension is specified.
filters.push_back(file_dialog::Filter());
filters.back().first = "All Files";
filters.back().second.push_back("*");
return filters;
}