feat: hide electron links in default help menu when packaged (#25831)
This commit is contained in:
parent
2e5c005e30
commit
b8f414f4da
1 changed files with 2 additions and 2 deletions
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in a new issue