Add 'All Files (*.*)' filter for <input> file dialog

The dialog would filter files as well as Chrome.
This commit is contained in:
Yuya Ochiai 2017-06-10 15:12:04 +09:00
parent 014aaccfc6
commit be9463b7b7

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;
}