Skip to content

Commit

Permalink
dont show until loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
conorpp committed Oct 29, 2019
1 parent e66df8f commit 547f2c0
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,19 @@ function createWindow () {
nodeIntegration: true
},
icon: 'assets/solokeys-32x32.png',
})
show: false,
});

win.once('ready-to-show', () => {
win.show()


// and load the index.html of the app.
// win.loadFile('app/index.html')
win.loadURL(url.format({
pathname: path.join(__dirname, 'index.html'),
protocol: 'file:',
slashes: true
}));
});
win.loadURL(url.format({
pathname: path.join(__dirname, 'index.html'),
protocol: 'file:',
slashes: true
}));

// Open the DevTools.
if (isDev)
Expand All @@ -53,11 +57,6 @@ function createWindow () {
win = null
})

// win.addEventListener('contextmenu', (e) => {
// e.preventDefault()
// rightClickPosition = {x: e.x, y: e.y}
// menu.popup(remote.getCurrentWindow())
// }, false)
}

// This method will be called when Electron has finished
Expand Down

0 comments on commit 547f2c0

Please sign in to comment.