Use once for 'ready-to-show'

This commit is contained in:
Cheng Zhao 2016-06-13 22:19:44 +09:00
parent f7f86160c1
commit fc09c98bec

View file

@ -36,7 +36,7 @@ will have no visual flash:
```javascript ```javascript
let win = new BrowserWindow({show: false}) let win = new BrowserWindow({show: false})
win.on('ready-to-show', () => { win.once('ready-to-show', () => {
win.show() win.show()
}) })
``` ```