From e25b6cf3f375a8dbffc6264d4a95aa7f87f08ebc Mon Sep 17 00:00:00 2001 From: john liddell Date: Tue, 3 Nov 2020 14:40:11 -0600 Subject: [PATCH] sync the auto start values when the app starts --- wowup-electron/src/app/services/wowup/wowup.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wowup-electron/src/app/services/wowup/wowup.service.ts b/wowup-electron/src/app/services/wowup/wowup.service.ts index cfe603b1..a62380ef 100644 --- a/wowup-electron/src/app/services/wowup/wowup.service.ts +++ b/wowup-electron/src/app/services/wowup/wowup.service.ts @@ -84,6 +84,7 @@ export class WowUpService { this.applicationVersion.toLowerCase().indexOf("beta") != -1; this.createDownloadDirectory().then(() => this.cleanupDownloads()); + this.setAutoStartup(); } public get updaterExists() { @@ -347,7 +348,9 @@ export class WowUpService { isHidden: this.startMinimized, }); - if (this.startWithSystem) autoLauncher.enable(); + if (this.startWithSystem) { + autoLauncher.enable(); + } else autoLauncher.disable(); } else { this._electronService.remote.app.setLoginItemSettings({