Fix undesired maximize on startup
This commit is contained in:
parent
45b599e87a
commit
30694b3efa
1 changed files with 1 additions and 1 deletions
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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue