mirror of
https://github.com/electron/electron.git
synced 2026-01-29 01:08:18 -05:00
properly check checkbox state on callback (#11658)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user