From 3d8db573d9291bc41f823cc9f195f990ce03d7a3 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 29 May 2019 12:37:58 -0700 Subject: [PATCH] fix: reverse dialog cancel bool for openDialog (#18492) --- atom/browser/ui/file_dialog_win.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/ui/file_dialog_win.cc b/atom/browser/ui/file_dialog_win.cc index b6bf533eec89..fcceca2fdbd6 100644 --- a/atom/browser/ui/file_dialog_win.cc +++ b/atom/browser/ui/file_dialog_win.cc @@ -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); }