mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: reverse dialog cancel bool for openDialog (#18492)
This commit is contained in:
committed by
Samuel Attard
parent
f5b3d00b47
commit
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user