Parents Still disabled even closed the child modal


#1

Electron: V1.3.1
OS : Windows

I create two window for block mainWindow, so i set window modal:true

let export = new BrowserWindow({height: 300,parent: mainWindow, modal: true, show: false, frame: false})
let export_done = new BrowserWindow({height: 300,parent: mainWindow, modal: true, show: false, frame: false})

and i’ll close export when download item “done”

item.once('done', (event, state) => {
    if (state === 'completed') {
      console.log('Download successfully')
      export_done.show();
      export.close();
    } else {
      console.log(`Download failed: ${state}`)
    }
  })

I expected that the parent window:mainWindow should be enabled after i close export_done(I close it use window.close() at window of export_done)
The result is after I close it, mainWindow remain disable.

I’ve try to make it more simple so i remove export window.
even i left only export_done window, sometimes still can not enable the mainWindow.

Does someone tried to use modal and have encounter what i said?
btw, i tried it on mac and everything going well.