🏁 update windows message_box function signatures to accept default_button_index....and do nothing with it
This commit is contained in:
parent
c4c145ef6a
commit
dfce803045
3 changed files with 20 additions and 14 deletions
|
@ -55,12 +55,13 @@ void ShowMessageBox(int type,
|
|||
if (mate::Converter<atom::MessageBoxCallback>::FromV8(args->isolate(),
|
||||
peek,
|
||||
&callback)) {
|
||||
atom::ShowMessageBox(window, (atom::MessageBoxType)type, buttons, default_button_index,
|
||||
cancel_id, options, title, message, detail, icon, callback);
|
||||
atom::ShowMessageBox(window, (atom::MessageBoxType)type, buttons,
|
||||
default_button_index, cancel_id, options, title,
|
||||
message, detail, icon, callback);
|
||||
} else {
|
||||
int chosen = atom::ShowMessageBox(window, (atom::MessageBoxType)type,
|
||||
buttons, default_button_index, cancel_id, options, title,
|
||||
message, detail, icon);
|
||||
buttons, default_button_index, cancel_id,
|
||||
options, title, message, detail, icon);
|
||||
args->Return(chosen);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue