rename all references to default_button_index -> default_id to keep consistent with cancel_id
This commit is contained in:
parent
dfce803045
commit
ae5c6add11
7 changed files with 28 additions and 28 deletions
|
@ -41,7 +41,7 @@ namespace {
|
|||
|
||||
void ShowMessageBox(int type,
|
||||
const std::vector<std::string>& buttons,
|
||||
int default_button_index,
|
||||
int default_id,
|
||||
int cancel_id,
|
||||
int options,
|
||||
const std::string& title,
|
||||
|
@ -56,11 +56,11 @@ void ShowMessageBox(int type,
|
|||
peek,
|
||||
&callback)) {
|
||||
atom::ShowMessageBox(window, (atom::MessageBoxType)type, buttons,
|
||||
default_button_index, cancel_id, options, title,
|
||||
default_id, cancel_id, options, title,
|
||||
message, detail, icon, callback);
|
||||
} else {
|
||||
int chosen = atom::ShowMessageBox(window, (atom::MessageBoxType)type,
|
||||
buttons, default_button_index, cancel_id,
|
||||
buttons, default_id, cancel_id,
|
||||
options, title, message, detail, icon);
|
||||
args->Return(chosen);
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ module.exports =
|
|||
options.message ?= ''
|
||||
options.detail ?= ''
|
||||
options.icon ?= null
|
||||
options.defaultButtonIndex ?= -1
|
||||
options.defaultId ?= -1
|
||||
|
||||
# Choose a default button to get selected when dialog is cancelled.
|
||||
unless options.cancelId?
|
||||
|
@ -109,7 +109,7 @@ module.exports =
|
|||
|
||||
binding.showMessageBox messageBoxType,
|
||||
options.buttons,
|
||||
options.defaultButtonIndex,
|
||||
options.defaultId,
|
||||
options.cancelId,
|
||||
flags,
|
||||
options.title,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue