|
@@ -78,13 +78,14 @@ void ShowMessageBox(int type,
|
|
|
if (mate::Converter<atom::MessageBoxCallback>::FromV8(args->isolate(),
|
|
|
peek,
|
|
|
&callback)) {
|
|
|
- atom::ShowMessageBox(window, static_cast<atom::MessageBoxType>(type), buttons,
|
|
|
- default_id, cancel_id, options, title, message, detail,
|
|
|
- checkbox_label, checkbox_checked, icon, callback);
|
|
|
+ atom::ShowMessageBox(window, static_cast<atom::MessageBoxType>(type),
|
|
|
+ buttons, default_id, cancel_id, options, title,
|
|
|
+ message, detail, checkbox_label, checkbox_checked,
|
|
|
+ icon, callback);
|
|
|
} else {
|
|
|
- int chosen = atom::ShowMessageBox(window, static_cast<atom::MessageBoxType>(type),
|
|
|
- buttons, default_id, cancel_id,
|
|
|
- options, title, message, detail, icon);
|
|
|
+ int chosen = atom::ShowMessageBox(
|
|
|
+ window, static_cast<atom::MessageBoxType>(type), buttons, default_id,
|
|
|
+ cancel_id, options, title, message, detail, icon);
|
|
|
args->Return(chosen);
|
|
|
}
|
|
|
}
|