electron open mode is changed

This commit is contained in:
richard-loafle 2020-02-06 18:44:35 +09:00
parent cffe62986e
commit 3729ea0e67

View File

@ -120,7 +120,9 @@ 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) { if (appStorage.startupHideWindow) {
this.window.close();
} else {
this.window.show(); this.window.show();
} }
this.window.on(ElectronBrowserWindowChannel.Unmaximize, () => { this.window.on(ElectronBrowserWindowChannel.Unmaximize, () => {