Use once for 'ready-to-show'
This commit is contained in:
parent
f7f86160c1
commit
fc09c98bec
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ will have no visual flash:
|
|||
|
||||
```javascript
|
||||
let win = new BrowserWindow({show: false})
|
||||
win.on('ready-to-show', () => {
|
||||
win.once('ready-to-show', () => {
|
||||
win.show()
|
||||
})
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue