diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts index bf84869d85e..d5d694f402a 100644 --- a/apps/desktop/src/main.ts +++ b/apps/desktop/src/main.ts @@ -102,7 +102,7 @@ export class Main { (win) => this.trayMain.setupWindowListeners(win) ); this.messagingMain = new MessagingMain(this, this.stateService); - this.updaterMain = new UpdaterMain(this.i18nService, this.windowMain, "bitwarden"); + this.updaterMain = new UpdaterMain(this.i18nService, this.windowMain); this.menuMain = new MenuMain(this); this.trayMain = new TrayMain(this.windowMain, this.i18nService, this.stateService); diff --git a/apps/desktop/src/main/updater.main.ts b/apps/desktop/src/main/updater.main.ts index 314ea076b22..088e76e2c5e 100644 --- a/apps/desktop/src/main/updater.main.ts +++ b/apps/desktop/src/main/updater.main.ts @@ -16,11 +16,7 @@ export class UpdaterMain { private doingUpdateCheckWithFeedback = false; private canUpdate = false; - constructor( - private i18nService: I18nService, - private windowMain: WindowMain, - private projectName: string - ) { + constructor(private i18nService: I18nService, private windowMain: WindowMain) { autoUpdater.logger = log; const linuxCanUpdate = process.platform === "linux" && isAppImage(); @@ -49,8 +45,7 @@ export class UpdaterMain { const result = await dialog.showMessageBox(this.windowMain.win, { type: "info", - title: - this.i18nService.t(this.projectName) + " - " + this.i18nService.t("updateAvailable"), + title: this.i18nService.t("bitwarden") + " - " + this.i18nService.t("updateAvailable"), message: this.i18nService.t("updateAvailable"), detail: this.i18nService.t("updateAvailableDesc"), buttons: [this.i18nService.t("yes"), this.i18nService.t("no")], @@ -87,7 +82,7 @@ export class UpdaterMain { const result = await dialog.showMessageBox(this.windowMain.win, { type: "info", - title: this.i18nService.t(this.projectName) + " - " + this.i18nService.t("restartToUpdate"), + title: this.i18nService.t("bitwarden") + " - " + this.i18nService.t("restartToUpdate"), message: this.i18nService.t("restartToUpdate"), detail: this.i18nService.t("restartToUpdateDesc", info.version), buttons: [this.i18nService.t("restart"), this.i18nService.t("later")],