Add OK button to alert
This commit is contained in:
parent
222734b5f5
commit
6ef1a9150c
1 changed files with 1 additions and 2 deletions
|
@ -32,9 +32,8 @@ void AtomJavaScriptDialogManager::RunJavaScriptDialog(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string> buttons;
|
std::vector<std::string> buttons = {"OK"};
|
||||||
if (message_type == JavaScriptMessageType::JAVASCRIPT_MESSAGE_TYPE_CONFIRM) {
|
if (message_type == JavaScriptMessageType::JAVASCRIPT_MESSAGE_TYPE_CONFIRM) {
|
||||||
buttons.push_back("OK");
|
|
||||||
buttons.push_back("Cancel");
|
buttons.push_back("Cancel");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue