From 897d706983a347938a2fb42ba8e58e40794bba13 Mon Sep 17 00:00:00 2001 From: Mihai <45673304+mihaicm93@users.noreply.github.com> Date: Tue, 17 Feb 2026 21:27:01 +0100 Subject: [PATCH] fix: try to restore maximised windows to correct display (#92) fix: App-maximized-2nd-monitor Signed-off-by: Mihai Signed-off-by: Mihai <45673304+mihaicm93@users.noreply.github.com> Co-authored-by: Mihai --- src/native/window.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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());