Merge pull request #9745 from yuya-oc/input-allow-all-files
Add 'All Files (*.*)' filter for <input> file dialog
This commit is contained in:
commit
720755e124
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue