Skip to content

Commit

Permalink
update show
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslopezj committed Mar 24, 2023
1 parent 37cc97d commit 2f94291
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const createWindow = () => {
const mainWindow = new BrowserWindow({
width: 1100,
height: 750,
show: false,
center: true,
titleBarStyle: 'hidden',
trafficLightPosition: { x: 10, y: 10 },
Expand All @@ -22,6 +23,10 @@ const createWindow = () => {
autoHideMenuBar: true,
});

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

// and load the index.html of the app.
mainWindow.loadURL(url);

Expand Down

0 comments on commit 2f94291

Please sign in to comment.