From 1a6fabd83f013deb7aad5aaadc16c655909c6171 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Tue, 7 Aug 2018 16:29:31 +0200 Subject: [PATCH] fix #55840 --- src/vs/workbench/parts/update/electron-browser/update.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/parts/update/electron-browser/update.ts b/src/vs/workbench/parts/update/electron-browser/update.ts index 39fbedf65b0..04edd26fd77 100644 --- a/src/vs/workbench/parts/update/electron-browser/update.ts +++ b/src/vs/workbench/parts/update/electron-browser/update.ts @@ -249,9 +249,6 @@ export class WinUserSetupContribution implements IWorkbenchContribution { @IOpenerService private openerService: IOpenerService, @IUpdateService private updateService: IUpdateService ) { - updateService.onStateChange(this.onUpdateStateChange, this, this.disposables); - this.onUpdateStateChange(this.updateService.state); - const neverShowAgain = new NeverShowAgain(WinUserSetupContribution.KEY_BOTH, this.storageService); if (!neverShowAgain.shouldShow()) { @@ -260,6 +257,8 @@ export class WinUserSetupContribution implements IWorkbenchContribution { isUserSetupInstalled().then(userSetupIsInstalled => { if (!userSetupIsInstalled) { + updateService.onStateChange(this.onUpdateStateChange, this, this.disposables); + this.onUpdateStateChange(this.updateService.state); return; } -- GitLab