mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-27 12:26:38 +01:00
PS-91 - hide update option if MAS build (#1432)
This commit is contained in:
parent
e2fe0c8b09
commit
6555312034
@ -2,7 +2,7 @@ import { BrowserWindow, clipboard, dialog, MenuItemConstructorOptions } from "el
|
||||
|
||||
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
||||
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";
|
||||
|
||||
@ -42,7 +42,7 @@ export class AboutMenu implements IMenubarMenu {
|
||||
return {
|
||||
id: "checkForUpdates",
|
||||
label: this.localize("checkForUpdates"),
|
||||
visible: !isWindowsStore() && !isSnapStore(),
|
||||
visible: !isWindowsStore() && !isSnapStore() && isMacAppStore() == undefined,
|
||||
click: () => this.checkForUpdate(),
|
||||
};
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ export class FirstMenu {
|
||||
id: "checkForUpdates",
|
||||
label: this.localize("checkForUpdates"),
|
||||
click: (menuItem) => this.checkForUpdate(menuItem),
|
||||
visible: !isMacAppStore() && !isWindowsStore() && !isSnapStore(),
|
||||
visible: isMacAppStore() == undefined && !isWindowsStore() && !isSnapStore(),
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user