1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Option for preferences in menus

This commit is contained in:
Jannick Hemelhof
2017-11-09 09:40:59 +01:00
parent 8ef485221c
commit b7f359f6cf
2 changed files with 35 additions and 0 deletions

View File

@@ -18,6 +18,15 @@ const boost = macOS
{
type: 'separator'
},
{
label: 'Preferences',
click () {
mainWindow.webContents.send('side:preferences')
}
},
{
type: 'separator'
},
{
label: 'Hide Boostnote',
accelerator: 'Command+H',
@@ -45,6 +54,15 @@ const boost = macOS
: {
label: 'Boostnote',
submenu: [
{
label: 'Preferences',
click () {
mainWindow.webContents.send('side:preferences')
}
},
{
type: 'separator'
},
{
role: 'quit',
accelerator: 'Control+Q'
@@ -132,6 +150,13 @@ const file = {
if (LINUX) {
file.submenu.push({
type: 'separator'
}, {
label: 'Preferences',
click () {
mainWindow.webContents.send('side:preferences')
}
}, {
type: 'separator'
}, {
role: 'quit',
accelerator: 'Control+Q'