Skip to content

Commit

Permalink
fix(Windows): Windows 7 style window frame at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Jun 23, 2022
1 parent 8f01740 commit 93ce619
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/main.ts
Expand Up @@ -31,6 +31,7 @@ async function createMainWindow () {
y: mainWindowState.y,
minWidth: 900,
minHeight: 550,
show: !isWindows,
title: 'Antares SQL',
icon: nativeImage.createFromDataURL(icon.default),
webPreferences: {
Expand Down Expand Up @@ -119,6 +120,9 @@ else {
mainWindow = await createMainWindow();
createAppMenu();

if (isWindows)
mainWindow.show();

if (isDevelopment)
mainWindow.webContents.openDevTools();

Expand Down

0 comments on commit 93ce619

Please sign in to comment.