From d2a7012d3fc4c61f7979d008ec7ac8062b9db8e1 Mon Sep 17 00:00:00 2001 From: Jake Fink Date: Thu, 24 Mar 2022 15:55:06 -0400 Subject: [PATCH] PS-91 bug/mas hide update option (#1446) * PS-91 - hide update option if MAS build * fix isMacAppStore --- jslib | 2 +- src/main/menu.about.ts | 2 +- src/main/menu.first.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jslib b/jslib index 9950fb42a1..5070a783a7 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 9950fb42a15bad434a4b404419ff4a87af67a27b +Subproject commit 5070a783a7730bcf7a0e4bf726c2e41d1b41cf2d diff --git a/src/main/menu.about.ts b/src/main/menu.about.ts index 6fa55c5c64..10ce23d123 100644 --- a/src/main/menu.about.ts +++ b/src/main/menu.about.ts @@ -42,7 +42,7 @@ export class AboutMenu implements IMenubarMenu { return { id: "checkForUpdates", label: this.localize("checkForUpdates"), - visible: !isWindowsStore() && !isSnapStore() && isMacAppStore() == undefined, + visible: !isWindowsStore() && !isSnapStore() && !isMacAppStore(), click: () => this.checkForUpdate(), }; } diff --git a/src/main/menu.first.ts b/src/main/menu.first.ts index 8017c54ab3..bccce323bf 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() == undefined && !isWindowsStore() && !isSnapStore(), + visible: !isMacAppStore() && !isWindowsStore() && !isSnapStore(), }; }