🏁 Fix dialog method calls for Windows
This commit is contained in:
parent
8843fef065
commit
1bf8270c0d
1 changed files with 2 additions and 2 deletions
|
@ -169,7 +169,7 @@ void RunOpenDialogInNewThread(const RunState& run_state,
|
||||||
const OpenDialogCallback& callback) {
|
const OpenDialogCallback& callback) {
|
||||||
std::vector<base::FilePath> paths;
|
std::vector<base::FilePath> paths;
|
||||||
bool result = ShowOpenDialog(parent, title, button_label, default_path,
|
bool result = ShowOpenDialog(parent, title, button_label, default_path,
|
||||||
filters, properties, &paths);
|
filters, properties, "", &paths);
|
||||||
run_state.ui_task_runner->PostTask(FROM_HERE,
|
run_state.ui_task_runner->PostTask(FROM_HERE,
|
||||||
base::Bind(callback, result, paths));
|
base::Bind(callback, result, paths));
|
||||||
run_state.ui_task_runner->DeleteSoon(FROM_HERE, run_state.dialog_thread);
|
run_state.ui_task_runner->DeleteSoon(FROM_HERE, run_state.dialog_thread);
|
||||||
|
@ -184,7 +184,7 @@ void RunSaveDialogInNewThread(const RunState& run_state,
|
||||||
const SaveDialogCallback& callback) {
|
const SaveDialogCallback& callback) {
|
||||||
base::FilePath path;
|
base::FilePath path;
|
||||||
bool result = ShowSaveDialog(parent, title, button_label, default_path,
|
bool result = ShowSaveDialog(parent, title, button_label, default_path,
|
||||||
filters, &path);
|
filters, "", "", false, &path);
|
||||||
run_state.ui_task_runner->PostTask(FROM_HERE,
|
run_state.ui_task_runner->PostTask(FROM_HERE,
|
||||||
base::Bind(callback, result, path));
|
base::Bind(callback, result, path));
|
||||||
run_state.ui_task_runner->DeleteSoon(FROM_HERE, run_state.dialog_thread);
|
run_state.ui_task_runner->DeleteSoon(FROM_HERE, run_state.dialog_thread);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue