Update window management for Windows platform
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
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:
parent
611cd4aad5
commit
1c8fc51db2
@ -231,7 +231,7 @@ export function createWindow() {
|
||||
if (process.platform === 'darwin') {
|
||||
win.maximize()
|
||||
} else if (process.platform === 'win32') {
|
||||
win.setFullScreen(true)
|
||||
win.maximize()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -100,7 +100,7 @@ function applyStartupWindowState(window) {
|
||||
if (isMacOS) {
|
||||
window.maximize?.()
|
||||
} else if (process.platform === 'win32') {
|
||||
window.setFullScreen?.(true)
|
||||
window.maximize?.()
|
||||
}
|
||||
|
||||
setTimeout(broadcastWindowState, 100)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user