Skip to content

Commit ef7763a

Browse files
committed
improve windows update ux
1 parent 15ca98b commit ef7763a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

  • src/vs/workbench/parts/update/electron-browser

src/vs/workbench/parts/update/electron-browser/update.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ export class UpdateContribution implements IGlobalActivity {
355355

356356
const handle = this.notificationService.notify({
357357
severity: severity.Info,
358-
message: nls.localize('updateAvailable', "There's an available update: {0} {1}", product.nameLong, update.productVersion),
358+
message: nls.localize('updateAvailable', "There's an update available: {0} {1}", product.nameLong, update.productVersion),
359359
actions: { primary: [installUpdateAction, NotNowAction, releaseNotesAction] }
360360
});
361361
once(handle.onDidDispose)(() => dispose(installUpdateAction, releaseNotesAction));
@@ -379,7 +379,7 @@ export class UpdateContribution implements IGlobalActivity {
379379

380380
// windows and mac
381381
private onUpdateReady(update: IUpdate): void {
382-
if (!this.shouldShowNotification()) {
382+
if (!isWindows && !this.shouldShowNotification()) {
383383
return;
384384
}
385385

@@ -396,10 +396,6 @@ export class UpdateContribution implements IGlobalActivity {
396396
}
397397

398398
private shouldShowNotification(): boolean {
399-
if (isWindows) {
400-
return true;
401-
}
402-
403399
const currentVersion = product.commit;
404400
const currentMillis = new Date().getTime();
405401
const lastKnownVersion = this.storageService.get('update/lastKnownVersion', StorageScope.GLOBAL);

0 commit comments

Comments
 (0)