From 65553120341ef0bb61567f015f9d7bdd71ab9775 Mon Sep 17 00:00:00 2001 From: Jake Fink Date: Wed, 23 Mar 2022 13:03:08 -0400 Subject: [PATCH] PS-91 - hide update option if MAS build (#1432) --- src/main/menu.about.ts | 4 ++-- src/main/menu.first.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/menu.about.ts b/src/main/menu.about.ts index 0a04f9e0..6fa55c5c 100644 --- a/src/main/menu.about.ts +++ b/src/main/menu.about.ts @@ -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(), }; } diff --git a/src/main/menu.first.ts b/src/main/menu.first.ts index bccce323..8017c54a 100644 --- a/src/main/menu.first.ts +++ b/src/main/menu.first.ts @@ -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(), }; }