提交 8b981e16 编写于 作者: S Sandeep Somavarapu

Fix #100714

上级 2fbb91cc
...@@ -169,7 +169,7 @@ export class UserDataAutoSyncService extends UserDataAutoSyncEnablementService i ...@@ -169,7 +169,7 @@ export class UserDataAutoSyncService extends UserDataAutoSyncEnablementService i
try { try {
// Remove machine // Remove machine
if (!donotRemoveMachine) { if (this.userDataSyncAccountService.account && !donotRemoveMachine) {
await this.userDataSyncMachinesService.removeCurrentMachine(); await this.userDataSyncMachinesService.removeCurrentMachine();
} }
......
...@@ -569,9 +569,9 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo ...@@ -569,9 +569,9 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo
message: localize('turn off sync confirmation', "Do you want to turn off sync?"), message: localize('turn off sync confirmation', "Do you want to turn off sync?"),
detail: localize('turn off sync detail', "Your settings, keybindings, extensions and UI State will no longer be synced."), detail: localize('turn off sync detail', "Your settings, keybindings, extensions and UI State will no longer be synced."),
primaryButton: localize('turn off', "Turn Off"), primaryButton: localize('turn off', "Turn Off"),
checkbox: { checkbox: this.userDataSyncWorkbenchService.accountStatus === AccountStatus.Available ? {
label: localize('turn off sync everywhere', "Turn off sync on all your devices and clear the data from the cloud.") label: localize('turn off sync everywhere', "Turn off sync on all your devices and clear the data from the cloud.")
} } : undefined
}); });
if (result.confirmed) { if (result.confirmed) {
return this.userDataSyncWorkbenchService.turnoff(!!result.checkboxChecked); return this.userDataSyncWorkbenchService.turnoff(!!result.checkboxChecked);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册