зеркало из https://github.com/electron/electron.git
fix: reverse dialog cancel bool for openDialog (#18492)
This commit is contained in:
Родитель
f5b3d00b47
Коммит
3d8db573d9
|
@ -97,7 +97,7 @@ void RunOpenDialogInNewThread(const RunState& run_state,
|
|||
bool result = ShowOpenDialogSync(settings, &paths);
|
||||
run_state.ui_task_runner->PostTask(
|
||||
FROM_HERE,
|
||||
base::BindOnce(&OnDialogOpened, std::move(promise), result, paths));
|
||||
base::BindOnce(&OnDialogOpened, std::move(promise), !result, paths));
|
||||
run_state.ui_task_runner->DeleteSoon(FROM_HERE, run_state.dialog_thread);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче