1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-24 11:55:50 +01:00

PS-91 - hide update option if MAS build (#1432)

This commit is contained in:
Jake Fink 2022-03-23 13:03:08 -04:00 committed by GitHub
parent e2fe0c8b09
commit 6555312034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import { BrowserWindow, clipboard, dialog, MenuItemConstructorOptions } from "el
import { I18nService } from "jslib-common/abstractions/i18n.service"; import { I18nService } from "jslib-common/abstractions/i18n.service";
import { UpdaterMain } from "jslib-electron/updater.main"; import { UpdaterMain } from "jslib-electron/updater.main";
import { isSnapStore, isWindowsStore } from "jslib-electron/utils"; import { isMacAppStore, isSnapStore, isWindowsStore } from "jslib-electron/utils";
import { IMenubarMenu } from "./menubar"; import { IMenubarMenu } from "./menubar";
@ -42,7 +42,7 @@ export class AboutMenu implements IMenubarMenu {
return { return {
id: "checkForUpdates", id: "checkForUpdates",
label: this.localize("checkForUpdates"), label: this.localize("checkForUpdates"),
visible: !isWindowsStore() && !isSnapStore(), visible: !isWindowsStore() && !isSnapStore() && isMacAppStore() == undefined,
click: () => this.checkForUpdate(), click: () => this.checkForUpdate(),
}; };
} }

View File

@ -40,7 +40,7 @@ export class FirstMenu {
id: "checkForUpdates", id: "checkForUpdates",
label: this.localize("checkForUpdates"), label: this.localize("checkForUpdates"),
click: (menuItem) => this.checkForUpdate(menuItem), click: (menuItem) => this.checkForUpdate(menuItem),
visible: !isMacAppStore() && !isWindowsStore() && !isSnapStore(), visible: isMacAppStore() == undefined && !isWindowsStore() && !isSnapStore(),
}; };
} }