From 856867aff3896f3dc56946aa01114db831cb1b4b Mon Sep 17 00:00:00 2001 From: okdistribute <633012+okdistribute@users.noreply.github.com> Date: Mon, 12 Oct 2020 15:32:41 -0700 Subject: [PATCH] feat: Help -> Open User Data Folder menu button --- messages/main/en.json | 1 + src/main/menu.js | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/messages/main/en.json b/messages/main/en.json index 0aa9f13e4..45032a040 100644 --- a/messages/main/en.json +++ b/messages/main/en.json @@ -51,6 +51,7 @@ "menu-selectall": "Select all", "menu-debugging": "Debug", "menu-report": "Report issue...", + "menu-open-user-data": "Open User Data Folder", "menu-check-for-updates": "Check for updates...", "menu-get-beta": "Test the latest beta version (unstable)...", "menu-downgrade-beta": "Go back to latest stable version...", diff --git a/src/main/menu.js b/src/main/menu.js index ea72f2820..3b4d7d40e 100644 --- a/src/main/menu.js +++ b/src/main/menu.js @@ -70,7 +70,7 @@ function menuTemplate (ipc) { click: async function (item, focusedWindow) { const result = await dialog.showOpenDialog( { - title: t('menu-import-configuration-dialog'), + title: t('menu-import-configuration-title'), filters: [ { name: 'Mapeo Settings', extensions: ['mapeosettings'] } ], @@ -246,6 +246,16 @@ function menuTemplate (ipc) { label: t('menu-help'), role: 'help', submenu: [ + { + label: t('menu-open-user-data'), + click: function (item, focusedWindow) { + shell.openPath(app.getPath('userData')) + }, + visible: true + }, + { + type: 'separator' + }, { label: t('menu-check-for-updates'), click: function (item, focusedWindow) {