From 93ce619782d58cfb8fb1ecce2ca2137a61ec6181 Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Thu, 23 Jun 2022 11:57:25 +0200 Subject: [PATCH] fix(Windows): Windows 7 style window frame at startup --- src/main/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/main.ts b/src/main/main.ts index 48d5ecef..d4b29b25 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -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: { @@ -119,6 +120,9 @@ else { mainWindow = await createMainWindow(); createAppMenu(); + if (isWindows) + mainWindow.show(); + if (isDevelopment) mainWindow.webContents.openDevTools();