Syntax and code explanation
//Syntax
dialog.showOpenDialog([browserWindow, ]options[, callback])
browserWindow:
The optional BrowserWindow argument allows the dialog to attach itself to a parent window, making it modal. See WIN above example.
Right now these dialogs are not modal and you can open multiple open file dialogs. This is really confusing when you accidentally do this.
Right now these dialogs are not modal and you can open multiple open file dialogs. This is really confusing when you accidentally do this.