Fix undesired maximize on startup

This commit is contained in:
Evan Hahn
2021-07-06 14:28:27 -05:00
committed by GitHub
parent 45b599e87a
commit 30694b3efa

View File

@@ -425,7 +425,7 @@ async function createWindow() {
mainWindow = new BrowserWindow(windowOptions);
mainWindowCreated = true;
setupSpellChecker(mainWindow, locale.messages);
if (!startInTray && windowConfig) {
if (!startInTray && windowConfig && windowConfig.maximized) {
mainWindow.maximize();
}
if (!startInTray && windowConfig && windowConfig.fullscreen) {