mirror of
https://github.com/electron/electron.git
synced 2026-01-09 23:48:01 -05:00
feat: hide electron links in default help menu when packaged (#25831)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Menu } from 'electron/main';
|
||||
import { app, Menu } from 'electron/main';
|
||||
import { shell } from 'electron/common';
|
||||
|
||||
const v8Util = process._linkedBinding('electron_common_v8_util');
|
||||
@@ -10,7 +10,7 @@ export const setDefaultApplicationMenu = () => {
|
||||
|
||||
const helpMenu: Electron.MenuItemConstructorOptions = {
|
||||
role: 'help',
|
||||
submenu: [
|
||||
submenu: app.isPackaged ? [] : [
|
||||
{
|
||||
label: 'Learn More',
|
||||
click: async () => {
|
||||
|
||||
Reference in New Issue
Block a user