Skip to content

Commit

Permalink
maximize window (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
Llandy3d authored Sep 10, 2024
1 parent d49eeae commit 53915d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ const createWindow = async () => {

// wait for the window to be ready before showing it. It prevents showing a white page on longer load times.
mainWindow.once('ready-to-show', () => {
mainWindow.show()
// maximize will also show the window so mainWindow.show() is unneeded
mainWindow.maximize()
mainWindow.focus()
})

Expand Down

0 comments on commit 53915d0

Please sign in to comment.