mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-14 12:58:39 -09:00
53 lines
973 B
JavaScript
53 lines
973 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} = require('electron');
|
|
const {openConfig} = require('../../config');
|
|
|
|
module.exports = function (commands, showAbout) {
|
|
return {
|
|
label: `${app.getName()}`,
|
|
submenu: [
|
|
{
|
|
label: 'About Hyper',
|
|
click() {
|
|
showAbout();
|
|
}
|
|
},
|
|
{
|
|
type: 'separator'
|
|
},
|
|
{
|
|
label: 'Preferences...',
|
|
accelerator: commands['window:preferences'],
|
|
click() {
|
|
openConfig();
|
|
}
|
|
},
|
|
{
|
|
type: 'separator'
|
|
},
|
|
{
|
|
role: 'services',
|
|
submenu: []
|
|
},
|
|
{
|
|
type: 'separator'
|
|
},
|
|
{
|
|
role: 'hide'
|
|
},
|
|
{
|
|
role: 'hideothers'
|
|
},
|
|
{
|
|
role: 'unhide'
|
|
},
|
|
{
|
|
type: 'separator'
|
|
},
|
|
{
|
|
role: 'quit'
|
|
}
|
|
]
|
|
};
|
|
};
|