mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-01 10:33:14 +08:00
Ensure background start works in maximized mode (#2259)
This commit is contained in:
parent
3735f87bc0
commit
f9e361bba5
1 changed files with 2 additions and 1 deletions
|
@ -558,12 +558,13 @@ export default class AppEnvConstructor {
|
|||
}
|
||||
|
||||
restoreWindowDimensions() {
|
||||
const settings = this.getLoadSettings();
|
||||
let dimensions = this.savedState.windowDimensions;
|
||||
if (!this.isValidDimensions(dimensions)) {
|
||||
dimensions = this.getDefaultWindowDimensions();
|
||||
}
|
||||
this.setWindowDimensions(dimensions);
|
||||
if (dimensions.maximized && process.platform !== 'darwin') {
|
||||
if (dimensions.maximized && !settings.initializeInBackground) {
|
||||
this.maximize();
|
||||
}
|
||||
if (dimensions.fullScreen) {
|
||||
|
|
Loading…
Reference in a new issue