优化程序启动窗口显示机制
parent
664a0e4ad8
commit
9b536f8dc1
|
@ -10,4 +10,8 @@ module.exports = mainWindow => {
|
||||||
// mainWindow.on('restore', () => {
|
// mainWindow.on('restore', () => {
|
||||||
// mainWindow.webContents.send('restore')
|
// mainWindow.webContents.send('restore')
|
||||||
// })
|
// })
|
||||||
|
|
||||||
|
mainWindow.once('ready-to-show', () => {
|
||||||
|
mainWindow.show()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,6 +59,7 @@ function createWindow() {
|
||||||
resizable: false,
|
resizable: false,
|
||||||
maximizable: false,
|
maximizable: false,
|
||||||
fullscreenable: false,
|
fullscreenable: false,
|
||||||
|
show: false,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
// contextIsolation: true,
|
// contextIsolation: true,
|
||||||
webSecurity: !isDev,
|
webSecurity: !isDev,
|
||||||
|
|
Loading…
Reference in New Issue