Skip to content

Commit ca5347c

Browse files
committed
chore(main: menu): add gumroad link
1 parent 5d7734a commit ca5347c

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

src/main/menu/main.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ MenuItemConstructorOptions
5050
const buttonId = dialog.showMessageBoxSync(
5151
BrowserWindow.getFocusedWindow()!,
5252
{
53-
// message: `Version ${newVersion} is now available for download.\nYour version is ${version}.`,
54-
// buttons: ['Go to GitHub', 'OK'],
5553
message: i18n.t('menu:app.update.message', {
5654
newVersion,
5755
oldVersion: version
@@ -141,6 +139,12 @@ const helpMenu: MenuItemConstructorOptions[] = [
141139
shell.openExternal('https://masscode.io/documentation')
142140
}
143141
},
142+
{
143+
label: i18n.t('menu:help.twitter'),
144+
click: () => {
145+
shell.openExternal('https://twitter.com/anton_reshetov')
146+
}
147+
},
144148
{
145149
type: 'separator'
146150
},
@@ -214,15 +218,15 @@ const helpMenu: MenuItemConstructorOptions[] = [
214218
}
215219
},
216220
{
217-
label: i18n.t('menu:help.donate.payPal'),
221+
label: i18n.t('menu:help.donate.gumroad'),
218222
click: () => {
219-
shell.openExternal('https://www.paypal.com/paypalme/antongithub')
223+
shell.openExternal('https://antonreshetov.gumroad.com/l/masscode')
220224
}
221225
},
222226
{
223-
label: i18n.t('menu:help.twitter'),
227+
label: i18n.t('menu:help.donate.payPal'),
224228
click: () => {
225-
shell.openExternal('https://twitter.com/anton_reshetov')
229+
shell.openExternal('https://www.paypal.com/paypalme/antongithub')
226230
}
227231
},
228232
{

src/main/services/i18n/locales/en/menu.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
},
3030
"donate": {
3131
"openCollective": "Donate on Open Collective",
32-
"payPal": "Donate via PayPal"
32+
"payPal": "Donate via PayPal",
33+
"gumroad": "Donate via Gumroad (Visa, Mastercard, etc.)"
3334
},
3435
"twitter": "Twitter",
3536
"devTools": "Toggle Developer Tools",

src/main/services/i18n/locales/ru/menu.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
},
3030
"donate": {
3131
"openCollective": "Пожертвовать через Open Collective",
32-
"payPal": "Пожертвовать через PayPal"
32+
"payPal": "Пожертвовать через PayPal",
33+
"gumroad": "Пожертвовать через Gumroad (Visa, Mastercard, и тд.)"
3334
},
3435
"twitter": "Twitter",
3536
"devTools": "Открыть инструменты разработчика",

0 commit comments

Comments
 (0)