修复窗口还原时闪烁的问题

pull/225/head
lyswhut 2020-04-03 21:19:44 +08:00
parent 76b3b3b23d
commit 2e84788d53
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ app.on('web-contents-created', (event, contents) => {
})
})
// https://github.com/electron/electron/issues/22691
app.commandLine.appendSwitch('wm-window-animations-disabled')
// https://github.com/electron/electron/issues/18397
app.allowRendererProcessReuse = !isDev