Make BrowserWindow unclickable when open a dialog


#1

I’ve read the dialog documentation.
I don’t understand the first parameter on showOpenDialog() for…
I thought that if I set a browserWindow instance there then the instance won’t be clickable until the dialog is closed… but nothing happen, the browserWindow is still clickable…

My problem is how to make the dialog attached to the browserWindow and the browserWindow is unclickable until the dialog is close or finish…


#2

Nevermind i just misplace the browserWindow parameter…
it works exactly as I think it was

dialog.showOpenDialog(caller,{
properties: [‘openFile’]
})