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);
|
mainWindow = new BrowserWindow(windowOptions);
|
||||||
mainWindowCreated = true;
|
mainWindowCreated = true;
|
||||||
setupSpellChecker(mainWindow, locale.messages);
|
setupSpellChecker(mainWindow, locale.messages);
|
||||||
if (!startInTray && windowConfig) {
|
if (!startInTray && windowConfig && windowConfig.maximized) {
|
||||||
mainWindow.maximize();
|
mainWindow.maximize();
|
||||||
}
|
}
|
||||||
if (!startInTray && windowConfig && windowConfig.fullscreen) {
|
if (!startInTray && windowConfig && windowConfig.fullscreen) {
|
||||||
|
Reference in New Issue
Block a user