@@ -26,9 +26,11 @@ Release date: TBD
|
|||||||
|
|
||||||
#### Windows
|
#### Windows
|
||||||
- Fixed an issue where an unexpected window appears while install/uninstalling
|
- Fixed an issue where an unexpected window appears while install/uninstalling
|
||||||
|
- Fixed an issue where the maximized state is not restored when the application is started by "Start app on Login"
|
||||||
|
|
||||||
#### Linux
|
#### Linux
|
||||||
- Fixed missing initial theme of tray icon
|
- Fixed missing initial theme of tray icon
|
||||||
|
- Fixed an issue where the maximized state is not restored when the application is started by "Start app on Login"
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
16
src/main.js
16
src/main.js
@@ -455,7 +455,11 @@ app.on('ready', () => {
|
|||||||
});
|
});
|
||||||
mainWindow = new BrowserWindow(windowOptions);
|
mainWindow = new BrowserWindow(windowOptions);
|
||||||
mainWindow.once('ready-to-show', () => {
|
mainWindow.once('ready-to-show', () => {
|
||||||
mainWindow.show();
|
if (process.platform !== 'darwin') {
|
||||||
|
mainWindow.show();
|
||||||
|
} else if (hideOnStartup !== true) {
|
||||||
|
mainWindow.show();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
@@ -484,14 +488,16 @@ app.on('ready', () => {
|
|||||||
|
|
||||||
mainWindow.setFullScreenable(true); // fullscreenable option has no effect.
|
mainWindow.setFullScreenable(true); // fullscreenable option has no effect.
|
||||||
if (hideOnStartup) {
|
if (hideOnStartup) {
|
||||||
mainWindow.minimize();
|
|
||||||
} else {
|
|
||||||
if (windowOptions.maximized) {
|
if (windowOptions.maximized) {
|
||||||
mainWindow.maximize();
|
mainWindow.maximize();
|
||||||
}
|
}
|
||||||
if (windowOptions.fullscreen) {
|
|
||||||
mainWindow.setFullScreen(true);
|
// on MacOS, the window is already hidden until 'ready-to-show'
|
||||||
|
if (process.platform !== 'darwin') {
|
||||||
|
mainWindow.minimize();
|
||||||
}
|
}
|
||||||
|
} else if (windowOptions.maximized) {
|
||||||
|
mainWindow.maximize();
|
||||||
}
|
}
|
||||||
|
|
||||||
// and load the index.html of the app.
|
// and load the index.html of the app.
|
||||||
|
Reference in New Issue
Block a user