Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
feat(menu): new menuitem that opens settings file in default application
Browse files Browse the repository at this point in the history
fix #195
  • Loading branch information
Lasse Küchler authored and lkuechler committed Jan 13, 2018
1 parent c0455ef commit f8676a7
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/electron/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ export function createMenu(store: Store): void {
{
type: 'separator'
},
{
label: 'Se&ttings',
visible: process.platform !== 'darwin',
accelerator: 'Cmd+,',
click: () => {
shell.openItem(store.getPreferencesPath());
}
},
{
type: 'separator',
visible: process.platform !== 'darwin'
},
{
label: '&Close',
accelerator: 'CmdOrCtrl+W',
Expand Down Expand Up @@ -292,9 +304,11 @@ export function createMenu(store: Store): void {
type: 'separator'
},
{
label: 'Preferences…',
label: 'Settings',
accelerator: 'Cmd+,',
role: 'preferences'
click: () => {
shell.openItem(store.getPreferencesPath());
}
},
{
label: 'Services',
Expand Down

0 comments on commit f8676a7

Please sign in to comment.