start mode is changed
This commit is contained in:
parent
77ae813584
commit
cffe62986e
|
@ -58,7 +58,7 @@ export class AppWindow {
|
|||
},
|
||||
acceptFirstMouse: true,
|
||||
icon: this.appIconPath,
|
||||
show: !appStorage.startupHideWindow
|
||||
show: false
|
||||
};
|
||||
|
||||
if (__DARWIN__) {
|
||||
|
@ -120,6 +120,9 @@ export class AppWindow {
|
|||
// can be tidied up once https://github.com/electron/electron/issues/12971
|
||||
// has been confirmed as resolved
|
||||
this.window.once(ElectronBrowserWindowChannel.ReadyToShow, () => {
|
||||
if (!appStorage.startupHideWindow) {
|
||||
this.window.show();
|
||||
}
|
||||
this.window.on(ElectronBrowserWindowChannel.Unmaximize, () => {
|
||||
setTimeout(() => {
|
||||
const bounds = this.window.getBounds();
|
||||
|
|
Loading…
Reference in New Issue
Block a user