Browse Source

properly check checkbox state on callback (#11658)

shelley vohr 7 years ago
parent
commit
4f0e1826e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      atom/browser/ui/message_box_mac.mm

+ 1 - 1
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