don't show the dummy window for the rest of the dialogs too on mac

This commit is contained in:
Heilig Benedek 2017-09-13 09:36:28 +02:00 committed by Cheng Zhao
parent 5373afa472
commit 71b36ef54d
7 changed files with 51 additions and 20 deletions

View file

@ -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,