sync the auto start values when the app starts

This commit is contained in:
john liddell
2020-11-03 14:40:11 -06:00
parent 61ac0eb183
commit e25b6cf3f3

View File

@@ -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({