diff --git a/CHANGELOG.md b/CHANGELOG.md index 67dbfd505..0866dc356 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ Web UI version numbers should always match the corresponding version of LBRY App ## [Unreleased] ### Added - * + * * ### Changed @@ -16,7 +16,7 @@ Web UI version numbers should always match the corresponding version of LBRY App * ### Fixed - * + * Fix help menu force reloading whole app * ### Deprecated diff --git a/app/menu/main-menu.js b/app/menu/main-menu.js index 32fc5168f..082b116ac 100644 --- a/app/menu/main-menu.js +++ b/app/menu/main-menu.js @@ -36,7 +36,7 @@ const baseTemplate = [ label: 'Help', click(item, focusedWindow) { if (focusedWindow) { - focusedWindow.loadURL(`file://${__dirname}/../dist/index.html?help`); + focusedWindow.webContents.send('open-menu', '/help'); } } } diff --git a/ui/js/main.js b/ui/js/main.js index 741c441da..78eceb235 100644 --- a/ui/js/main.js +++ b/ui/js/main.js @@ -49,6 +49,12 @@ ipcRenderer.on("open-uri-requested", (event, uri) => { } }); +ipcRenderer.on("open-menu", (event, uri) => { + if (uri && uri.startsWith("/help")) { + app.store.dispatch(doNavigate("/help")); + } +}); + document.addEventListener("click", event => { var target = event.target; while (target && target !== document) {