Fix undesired maximize on startup
This commit is contained in:
2
main.js
2
main.js
@@ -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) {
|
||||
|
Reference in New Issue
Block a user