properly check checkbox state on callback (#11658)
This commit is contained in:
parent
4dab824c6b
commit
4f0e1826e5
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ void ShowMessageBox(NativeWindow* parent_window,
|
||||||
if (!parent_window || !parent_window->GetNativeWindow() ||
|
if (!parent_window || !parent_window->GetNativeWindow() ||
|
||||||
parent_window->is_offscreen_dummy()) {
|
parent_window->is_offscreen_dummy()) {
|
||||||
int ret = [[alert autorelease] runModal];
|
int ret = [[alert autorelease] runModal];
|
||||||
callback.Run(ret, false);
|
callback.Run(ret, alert.suppressionButton.state == NSOnState);
|
||||||
} else {
|
} else {
|
||||||
ModalDelegate* delegate = [[ModalDelegate alloc] initWithCallback:callback
|
ModalDelegate* delegate = [[ModalDelegate alloc] initWithCallback:callback
|
||||||
andAlert:alert
|
andAlert:alert
|
||||||
|
|
Loading…
Reference in a new issue