feat: hide electron links in default help menu when packaged (#25831)

This commit is contained in:
Jeremy Rose 2020-10-09 13:42:44 -07:00 committed by GitHub
parent 2e5c005e30
commit b8f414f4da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
import { Menu } from 'electron/main'; import { app, Menu } from 'electron/main';
import { shell } from 'electron/common'; import { shell } from 'electron/common';
const v8Util = process._linkedBinding('electron_common_v8_util'); const v8Util = process._linkedBinding('electron_common_v8_util');
@ -10,7 +10,7 @@ export const setDefaultApplicationMenu = () => {
const helpMenu: Electron.MenuItemConstructorOptions = { const helpMenu: Electron.MenuItemConstructorOptions = {
role: 'help', role: 'help',
submenu: [ submenu: app.isPackaged ? [] : [
{ {
label: 'Learn More', label: 'Learn More',
click: async () => { click: async () => {