From 4f0e1826e5470f1574e528ff6ca7478a4ee89a46 Mon Sep 17 00:00:00 2001 From: shelley vohr Date: Wed, 17 Jan 2018 08:51:49 -0500 Subject: [PATCH] properly check checkbox state on callback (#11658) --- atom/browser/ui/message_box_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/ui/message_box_mac.mm b/atom/browser/ui/message_box_mac.mm index 8f495f3bf7af..17c66043a27f 100644 --- a/atom/browser/ui/message_box_mac.mm +++ b/atom/browser/ui/message_box_mac.mm @@ -188,7 +188,7 @@ void ShowMessageBox(NativeWindow* parent_window, if (!parent_window || !parent_window->GetNativeWindow() || parent_window->is_offscreen_dummy()) { int ret = [[alert autorelease] runModal]; - callback.Run(ret, false); + callback.Run(ret, alert.suppressionButton.state == NSOnState); } else { ModalDelegate* delegate = [[ModalDelegate alloc] initWithCallback:callback andAlert:alert