dear god never run beautifier again

This commit is contained in:
Shelley Vohr 2017-09-28 00:10:52 -04:00
parent 0f34967648
commit 2915617c5c
No known key found for this signature in database
GPG key ID: F13993A75599653C
2 changed files with 26 additions and 18 deletions

View file

@ -54,9 +54,11 @@ app.on('window-all-closed', () => {
app.once('ready', () => {
if (Menu.getApplicationMenu()) return
const template = [{
const template = [
{
label: 'Edit',
submenu: [{
submenu: [
{
role: 'undo'
},
{
@ -87,7 +89,8 @@ app.once('ready', () => {
},
{
label: 'View',
submenu: [{
submenu: [
{
role: 'reload'
},
{
@ -118,7 +121,8 @@ app.once('ready', () => {
},
{
role: 'window',
submenu: [{
submenu: [
{
role: 'minimize'
},
{
@ -128,7 +132,8 @@ app.once('ready', () => {
},
{
role: 'help',
submenu: [{
submenu: [
{
label: 'Learn More',
click () {
shell.openExternal('https://electron.atom.io')
@ -161,7 +166,8 @@ app.once('ready', () => {
if (process.platform === 'darwin') {
template.unshift({
label: 'Electron',
submenu: [{
submenu: [
{
role: 'about'
},
{
@ -195,7 +201,8 @@ app.once('ready', () => {
type: 'separator'
}, {
label: 'Speech',
submenu: [{
submenu: [
{
role: 'startspeaking'
},
{
@ -203,7 +210,8 @@ app.once('ready', () => {
}
]
})
template[3].submenu = [{
template[3].submenu = [
{
role: 'close'
},
{