From 3729ea0e67f4bcce177b401dd30349ef640a1cd3 Mon Sep 17 00:00:00 2001 From: richard-loafle <44828666+richard-loafle@users.noreply.github.com> Date: Thu, 6 Feb 2020 18:44:35 +0900 Subject: [PATCH] electron open mode is changed --- .../ucap-webmessenger-electron/src/app/AppWindow.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts b/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts index 0e1b4d68..84964c7b 100644 --- a/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts +++ b/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts @@ -120,7 +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) { + if (appStorage.startupHideWindow) { + this.window.close(); + } else { this.window.show(); } this.window.on(ElectronBrowserWindowChannel.Unmaximize, () => {