Dialog.ShowMessagebox prevent tab other browser window


#1

Hi guys, I have weird problem in dialog.showmessagebox. It can go to parent browserwindow when I set “show” to false but when i set “show” to true, the dialog.showmessagebox is always on top but there’s new child browserwindow behind of it.

Here’s my code sample:

dialog.showMessageBox(
new BrowserWindow({
parent: win,
modal: true,
show: false,
alwaysOnTop: true
}),
{
title:“Test!”,
message:“this is a test!”,
type:“warning”,
buttons:[“Ok”],
defaultId: 0
},function(index){
// if clicked “Try again please”
if( 0 == index ){
console.log(‘OK’);
}
})