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