Update window management for Windows platform
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good

- Changed fullscreen mode to maximize window on Windows during startup in both mainWindow.js and window.js.
- Improved consistency in window behavior across different operating systems.
This commit is contained in:
Tom Butcher 2026-08-02 18:34:43 +01:00
parent 611cd4aad5
commit 1c8fc51db2
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ export function createWindow() {
if (process.platform === 'darwin') {
win.maximize()
} else if (process.platform === 'win32') {
win.setFullScreen(true)
win.maximize()
}
}

View File

@ -100,7 +100,7 @@ function applyStartupWindowState(window) {
if (isMacOS) {
window.maximize?.()
} else if (process.platform === 'win32') {
window.setFullScreen?.(true)
window.maximize?.()
}
setTimeout(broadcastWindowState, 100)