diff --git a/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts b/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts index a7af6014..0e1b4d68 100644 --- a/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts +++ b/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts @@ -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();