From a5226113587a4e49cbf2d7e971b14d35a1bb3fcc Mon Sep 17 00:00:00 2001 From: leejinho Date: Wed, 18 Mar 2020 11:56:54 +0900 Subject: [PATCH] bugfix :: electron-storage rename permision error. --- .../ucap-webmessenger-electron/src/app/AppWindow.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts b/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts index 4c418ffa..774b4c2f 100644 --- a/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts +++ b/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts @@ -122,11 +122,14 @@ 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.close(); - } else { - this.window.show(); - } + this.window.close(); + setTimeout(() => { + if (appStorage.startupHideWindow) { + this.window.close(); + } else { + this.window.show(); + } + }, 500); this.window.on(ElectronBrowserWindowChannel.Unmaximize, () => { setTimeout(() => { const bounds = this.window.getBounds();