From 4890cd6a6bcc35e9adc592a8f46b3fc5e164ad7d Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Mon, 8 Jul 2024 14:14:21 +0200 Subject: [PATCH] Add menu item to Help menu that opens documentation page --- electron/main/menu.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/electron/main/menu.ts b/electron/main/menu.ts index 39f942c..9e4a2a4 100644 --- a/electron/main/menu.ts +++ b/electron/main/menu.ts @@ -131,7 +131,14 @@ const template = [ role: 'help', submenu: [ { - label: 'Learn More', + label: 'Documentation', + click: async () => { + const { shell } = require('electron') + await shell.openExternal('https://heynote.com/docs/') + } + }, + { + label: 'Website', click: async () => { const { shell } = require('electron') await shell.openExternal('https://heynote.com')