From 9b536f8dc14482a45892488ad998932b0296b820 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 28 Mar 2020 10:50:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=A8=8B=E5=BA=8F=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E7=AA=97=E5=8F=A3=E6=98=BE=E7=A4=BA=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/events/winEvent.js | 4 ++++ src/main/index.js | 1 + 2 files changed, 5 insertions(+) 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,