Speed up start time

This commit is contained in:
Thomas Nordquist
2019-01-23 21:35:52 +01:00
parent 8091323623
commit 672d5e8109
5 changed files with 18 additions and 9 deletions

View File

@@ -28,6 +28,7 @@ function createWindow() {
mainWindow = new BrowserWindow({
width: 1024,
height: 700,
show: false,
webPreferences: {
nodeIntegration: true,
devTools: true,
@@ -35,6 +36,10 @@ function createWindow() {
icon: iconPath,
})
mainWindow.once('ready-to-show', () => {
mainWindow && mainWindow.show()
})
console.log('icon path', iconPath)
// and load the index.html of the app.
mainWindow.loadFile('app/build/index.html')