don't show the dummy window for the rest of the dialogs too on mac
This commit is contained in:
parent
5373afa472
commit
71b36ef54d
7 changed files with 51 additions and 20 deletions
|
@ -41,8 +41,7 @@ void AtomJavaScriptDialogManager::RunJavaScriptDialog(
|
|||
buttons.push_back("Cancel");
|
||||
}
|
||||
|
||||
atom::ShowMessageBox(api_web_contents_->IsOffScreen() ? nullptr :
|
||||
NativeWindow::FromWebContents(web_contents),
|
||||
atom::ShowMessageBox(NativeWindow::FromWebContents(web_contents),
|
||||
atom::MessageBoxType::MESSAGE_BOX_TYPE_NONE, buttons, -1,
|
||||
0, atom::MessageBoxOptions::MESSAGE_BOX_NONE, "",
|
||||
base::UTF16ToUTF8(message_text), "", "", false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue