Skip to content

Commit

Permalink
Hide main window until it is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
nistei committed Jan 14, 2021
1 parent 85dbe7a commit 2bb9a97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,17 @@ const createWindow = (): void => {
frame: false,
icon: 'src/main/icons/icn.ico',
backgroundColor: '#1C1C1C',
show: false,
webPreferences: {
nodeIntegration: true,
enableRemoteModule: true
}
});

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

const lastX = settings.get('cache.main.lastWindowX');
const lastY = settings.get('cache.main.lastWindowY');

Expand Down

0 comments on commit 2bb9a97

Please sign in to comment.