Merge pull request #235 from sachaaaaa/help_menu

Replace help menu links
pull/239/head
sachaaaaa 6 years ago committed by GitHub
commit b114f6ac75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -653,10 +653,6 @@
"message": "Go to Release Notes",
"description": ""
},
"goToForums": {
"message": "Go to Forums",
"description": "Item under the Help menu, takes you to the forums"
},
"goToSupportPage": {
"message": "Go to Support Page",
"description": "Item under the Help menu, takes you to the support page"

@ -7,7 +7,6 @@ exports.createTemplate = (options, messages) => {
const {
includeSetup,
openForums,
openNewBugForm,
openReleaseNotes,
openSupportPage,
@ -136,10 +135,6 @@ exports.createTemplate = (options, messages) => {
{
type: 'separator',
},
{
label: messages.goToForums.message,
click: openForums,
},
{
label: messages.goToSupportPage.message,
click: openSupportPage,

@ -392,24 +392,20 @@ function createWindow() {
function openReleaseNotes() {
shell.openExternal(
`https://github.com/signalapp/Signal-Desktop/releases/tag/v${app.getVersion()}`
`https://github.com/loki-project/loki-messenger/releases/tag/v${app.getVersion()}`
);
}
function openNewBugForm() {
shell.openExternal('https://github.com/signalapp/Signal-Desktop/issues/new');
shell.openExternal('https://github.com/loki-project/loki-messenger/issues/new');
}
function openSupportPage() {
shell.openExternal(
'https://support.signal.org/hc/en-us/categories/202319038-Desktop'
'https://loki-project.github.io/loki-docs/LokiServices/Messenger/'
);
}
function openForums() {
shell.openExternal('https://community.signalusers.org/');
}
function setupWithImport() {
if (mainWindow) {
mainWindow.webContents.send('set-up-with-import');
@ -826,7 +822,6 @@ function setupMenu(options) {
openReleaseNotes,
openNewBugForm,
openSupportPage,
openForums,
platform,
setupWithImport,
setupAsNewDevice,

@ -186,10 +186,6 @@
{
"type": "separator"
},
{
"label": "Go to Forums",
"click": null
},
{
"label": "Go to Support Page",
"click": null

@ -173,10 +173,6 @@
{
"type": "separator"
},
{
"label": "Go to Forums",
"click": null
},
{
"label": "Go to Support Page",
"click": null

@ -125,10 +125,6 @@
{
"type": "separator"
},
{
"label": "Go to Forums",
"click": null
},
{
"label": "Go to Support Page",
"click": null

@ -114,10 +114,6 @@
{
"type": "separator"
},
{
"label": "Go to Forums",
"click": null
},
{
"label": "Go to Support Page",
"click": null

@ -46,7 +46,6 @@ describe('SignalMenu', () => {
},
};
const options = {
openForums: null,
openNewBugForm: null,
openReleaseNotes: null,
openSupportPage: null,

Loading…
Cancel
Save