Add 'All Files (*.*)' filter for <input> file dialog
The dialog would filter files as well as Chrome.
This commit is contained in:
parent
014aaccfc6
commit
be9463b7b7
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