Skip to content

Commit

Permalink
chore(main): fix splash screen loading issue (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
comountainclimber authored and Maurice Dalderup committed Jan 6, 2019
1 parent 94bc139 commit 4089010
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,19 @@ function createWindow() {
splashWindow = new BrowserWindow({
width: 275,
height: 330,
show: true,
show: false,
titleBarStyle: 'customButtonsOnHover',
frame: false,
icon: iconPath
});

splashWindow.loadURL(getWindowPath(getStaticPath(), 'splash.html'));


splashWindow.once('ready-to-show', () => {
splashWindow.show();
});

mainWindow.loadURL(getWindowPath(__dirname, 'index.html'));

// When mainWindow finishes loading, then show
Expand Down

0 comments on commit 4089010

Please sign in to comment.