Restore maximized window state on autostart
This commit is contained in:
@@ -484,6 +484,9 @@ app.on('ready', () => {
|
||||
|
||||
mainWindow.setFullScreenable(true); // fullscreenable option has no effect.
|
||||
if (hideOnStartup) {
|
||||
if (windowOptions.maximized) {
|
||||
mainWindow.maximize();
|
||||
}
|
||||
mainWindow.minimize();
|
||||
} else {
|
||||
if (windowOptions.maximized) {
|
||||
|
Reference in New Issue
Block a user