bugfix :: electron-storage rename permision error.

This commit is contained in:
leejinho 2020-03-18 11:56:54 +09:00
parent 2ceec93b36
commit a522611358

View File

@ -122,11 +122,14 @@ export class AppWindow {
// can be tidied up once https://github.com/electron/electron/issues/12971 // can be tidied up once https://github.com/electron/electron/issues/12971
// has been confirmed as resolved // has been confirmed as resolved
this.window.once(ElectronBrowserWindowChannel.ReadyToShow, () => { this.window.once(ElectronBrowserWindowChannel.ReadyToShow, () => {
if (appStorage.startupHideWindow) { this.window.close();
this.window.close(); setTimeout(() => {
} else { if (appStorage.startupHideWindow) {
this.window.show(); this.window.close();
} } else {
this.window.show();
}
}, 500);
this.window.on(ElectronBrowserWindowChannel.Unmaximize, () => { this.window.on(ElectronBrowserWindowChannel.Unmaximize, () => {
setTimeout(() => { setTimeout(() => {
const bounds = this.window.getBounds(); const bounds = this.window.getBounds();