mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-15 21:28:40 -09:00
51 lines
966 B
JavaScript
51 lines
966 B
JavaScript
// This menu label is overrided by OSX to be the appName
|
|
// The label is set to appName here so it matches actual behavior
|
|
const {app, shell} = require('electron');
|
|
const {accelerators} = require('../../accelerators');
|
|
const {confPath} = require('../../config/paths');
|
|
|
|
module.exports = function () {
|
|
return {
|
|
label: `${app.getName()}`,
|
|
submenu: [
|
|
{
|
|
role: 'about'
|
|
},
|
|
{
|
|
type: 'separator'
|
|
},
|
|
{
|
|
label: 'Preferences...',
|
|
accelerator: accelerators.preferences,
|
|
click() {
|
|
shell.openItem(confPath);
|
|
}
|
|
},
|
|
{
|
|
type: 'separator'
|
|
},
|
|
{
|
|
role: 'services',
|
|
submenu: []
|
|
},
|
|
{
|
|
type: 'separator'
|
|
},
|
|
{
|
|
role: 'hide'
|
|
},
|
|
{
|
|
role: 'hideothers'
|
|
},
|
|
{
|
|
role: 'unhide'
|
|
},
|
|
{
|
|
type: 'separator'
|
|
},
|
|
{
|
|
role: 'quit'
|
|
}
|
|
]
|
|
};
|
|
};
|