Speed up start time
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user