dear god never run beautifier again
This commit is contained in:
parent
0f34967648
commit
2915617c5c
2 changed files with 26 additions and 18 deletions
|
@ -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'
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue