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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user