1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

refactor: improved temporary fix to Windows 7 style frame

This commit is contained in:
2022-01-28 09:19:49 +01:00
parent 1356011ba3
commit 401cb49687

View File

@@ -33,6 +33,7 @@ async function createMainWindow () {
minHeight: 550, minHeight: 550,
title: 'Antares SQL', title: 'Antares SQL',
autoHideMenuBar: true, autoHideMenuBar: true,
show: !isWindows, // Temporary workaround to https://github.com/electron/electron/issues/30024
icon: nativeImage.createFromDataURL(icon.default), icon: nativeImage.createFromDataURL(icon.default),
webPreferences: { webPreferences: {
nodeIntegration: true, nodeIntegration: true,
@@ -46,9 +47,6 @@ async function createMainWindow () {
backgroundColor: '#1d1d1d' backgroundColor: '#1d1d1d'
}); });
if (isWindows) // Temporary workaround to https://github.com/electron/electron/issues/30024
window.minimize();
mainWindowState.manage(window); mainWindowState.manage(window);
window.on('moved', saveWindowState); window.on('moved', saveWindowState);
@@ -118,7 +116,7 @@ else {
createAppMenu(); createAppMenu();
if (isWindows) // Temporary workaround to https://github.com/electron/electron/issues/30024 if (isWindows) // Temporary workaround to https://github.com/electron/electron/issues/30024
mainWindow.focus(); mainWindow.show();
// if (isDevelopment) // if (isDevelopment)
// mainWindow.webContents.openDevTools(); // mainWindow.webContents.openDevTools();