Win: Fix adding '.*' to filename in callback.
This commit is contained in:
parent
fa24e15d8b
commit
f69bafd48a
1 changed files with 2 additions and 1 deletions
|
@ -272,7 +272,8 @@ bool ShowSaveDialog(atom::NativeWindow* parent_window,
|
|||
|
||||
bool matched = false;
|
||||
for (size_t i = 0; i < filter.second.size(); ++i) {
|
||||
if (base::EndsWith(file_name, filter.second[i], false)) {
|
||||
if (filter.second[i] == "*" ||
|
||||
base::EndsWith(file_name, filter.second[i], false)) {
|
||||
matched = true;
|
||||
break;;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue