Skip to content

Commit

Permalink
fix: splashscreen not showing (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
Llandy3d authored Feb 10, 2025
1 parent 445202e commit aeae586
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ const createSplashWindow = async () => {
splashscreenWindow.webContents.openDevTools({ mode: 'detach' })
}

await splashscreenWindow.loadFile(splashscreenFile)

// wait for the window to be ready before showing it. It prevents showing a white page on longer load times.
splashscreenWindow.once('ready-to-show', () => {
splashscreenWindow.show()
})

await splashscreenWindow.loadFile(splashscreenFile)

return splashscreenWindow
}

Expand Down

0 comments on commit aeae586

Please sign in to comment.