Fix #91696
This commit is contained in:
parent
d1b0192b4f
commit
72c8d5d300
1 changed files with 7 additions and 2 deletions
|
@ -97,7 +97,7 @@ export class UserDataAutoSyncService extends UserDataAutoSyncEnablementService i
|
|||
this.syncTriggerDelayer = this._register(new Delayer<void>(0));
|
||||
|
||||
if (userDataSyncStoreService.userDataSyncStore) {
|
||||
this.updateAutoSync();
|
||||
this.updateAutoSync(true);
|
||||
if (this.hasToDisableMachineEventually()) {
|
||||
this.disableMachineEventually();
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ export class UserDataAutoSyncService extends UserDataAutoSyncEnablementService i
|
|||
}
|
||||
}
|
||||
|
||||
private updateAutoSync(): void {
|
||||
private updateAutoSync(init?: boolean): void {
|
||||
const { enabled, message } = this.isAutoSyncEnabled();
|
||||
if (enabled) {
|
||||
if (this.autoSync.value === undefined) {
|
||||
|
@ -127,6 +127,11 @@ export class UserDataAutoSyncService extends UserDataAutoSyncEnablementService i
|
|||
}
|
||||
this.autoSync.clear();
|
||||
}
|
||||
|
||||
/* log message when auto sync is disabled during start up or when auto sync is not disabled by user */
|
||||
else if (message && (init || this.isEnabled())) {
|
||||
this.logService.info(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue