diff --git a/src/native/window.ts b/src/native/window.ts index 346782c..b6fb575 100644 --- a/src/native/window.ts +++ b/src/native/window.ts @@ -57,11 +57,6 @@ export function createMainWindow() { // hide the options mainWindow.setMenu(null); - // maximise the window if it was maximised before - if (config.windowState.isMaximised) { - mainWindow.maximize(); - } - // restore last position if it was moved previously if (config.windowState.x > 0 || config.windowState.y > 0) { mainWindow.setPosition( @@ -78,6 +73,11 @@ export function createMainWindow() { ); } + // maximise the window if it was maximised before + if (config.windowState.isMaximised) { + mainWindow.maximize(); + } + // load the entrypoint mainWindow.loadURL(BUILD_URL.toString());