优化程序启动窗口显示机制

pull/225/head
lyswhut 2020-03-28 10:50:31 +08:00
parent 664a0e4ad8
commit 9b536f8dc1
2 changed files with 5 additions and 0 deletions

View File

@ -10,4 +10,8 @@ module.exports = mainWindow => {
// mainWindow.on('restore', () => {
// mainWindow.webContents.send('restore')
// })
mainWindow.once('ready-to-show', () => {
mainWindow.show()
})
}

View File

@ -59,6 +59,7 @@ function createWindow() {
resizable: false,
maximizable: false,
fullscreenable: false,
show: false,
webPreferences: {
// contextIsolation: true,
webSecurity: !isDev,