diff --git a/src/main/events/winEvent.js b/src/main/events/winEvent.js index dd453f6c..e3f8442b 100644 --- a/src/main/events/winEvent.js +++ b/src/main/events/winEvent.js @@ -10,4 +10,8 @@ module.exports = mainWindow => { // mainWindow.on('restore', () => { // mainWindow.webContents.send('restore') // }) + + mainWindow.once('ready-to-show', () => { + mainWindow.show() + }) } diff --git a/src/main/index.js b/src/main/index.js index 59c46d88..7fc1fd47 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -59,6 +59,7 @@ function createWindow() { resizable: false, maximizable: false, fullscreenable: false, + show: false, webPreferences: { // contextIsolation: true, webSecurity: !isDev,