1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-09 13:10:17 +00:00

Remove projectName from updater

This is likely another relict from sharing this previously with dircetory-connector and is not needed anymore
This commit is contained in:
Daniel James Smith
2023-02-08 12:11:56 +01:00
parent bd54d632d9
commit 0623b9ce25
2 changed files with 4 additions and 9 deletions

View File

@@ -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);

View File

@@ -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")],