add support for editing preferences with cmd+, (#52)
This commit is contained in:
parent
952c328e01
commit
d3322090a1
2 changed files with 25 additions and 0 deletions
9
menu.js
9
menu.js
|
|
@ -15,6 +15,15 @@ module.exports = function createMenu ({ createWindow }) {
|
|||
{
|
||||
role: 'about'
|
||||
},
|
||||
{
|
||||
label: 'Preferences...',
|
||||
accelerator: 'Cmd+,',
|
||||
click (item, focusedWindow) {
|
||||
if (focusedWindow) {
|
||||
focusedWindow.rpc.emit('preferences');
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue