Fix indentation in menu template example
This commit is contained in:
		
					parent
					
						
							
								27625d2665
							
						
					
				
			
			
				commit
				
					
						9eb521fb38
					
				
			
		
					 3 changed files with 15 additions and 12 deletions
				
			
		| 
						 | 
					@ -92,10 +92,11 @@ const {app, Menu} = require('electron')
 | 
				
			||||||
const dockMenu = Menu.buildFromTemplate([
 | 
					const dockMenu = Menu.buildFromTemplate([
 | 
				
			||||||
  {label: 'New Window', click () { console.log('New Window') }},
 | 
					  {label: 'New Window', click () { console.log('New Window') }},
 | 
				
			||||||
  {label: 'New Window with Settings',
 | 
					  {label: 'New Window with Settings',
 | 
				
			||||||
  submenu: [
 | 
					    submenu: [
 | 
				
			||||||
    {label: 'Basic'},
 | 
					      {label: 'Basic'},
 | 
				
			||||||
    {label: 'Pro'}
 | 
					      {label: 'Pro'}
 | 
				
			||||||
  ]},
 | 
					    ]
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
  {label: 'New Command...'}
 | 
					  {label: 'New Command...'}
 | 
				
			||||||
])
 | 
					])
 | 
				
			||||||
app.dock.setMenu(dockMenu)
 | 
					app.dock.setMenu(dockMenu)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,10 +72,11 @@ const {app, Menu} = require('electron')
 | 
				
			||||||
const dockMenu = Menu.buildFromTemplate([
 | 
					const dockMenu = Menu.buildFromTemplate([
 | 
				
			||||||
  {label: 'New Window', click () { console.log('New Window') }},
 | 
					  {label: 'New Window', click () { console.log('New Window') }},
 | 
				
			||||||
  {label: 'New Window with Settings',
 | 
					  {label: 'New Window with Settings',
 | 
				
			||||||
  submenu: [
 | 
					    submenu: [
 | 
				
			||||||
    {label: 'Basic'},
 | 
					      {label: 'Basic'},
 | 
				
			||||||
    {label: 'Pro'}
 | 
					      {label: 'Pro'}
 | 
				
			||||||
  ]},
 | 
					    ]
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
  {label: 'New Command...'}
 | 
					  {label: 'New Command...'}
 | 
				
			||||||
])
 | 
					])
 | 
				
			||||||
app.dock.setMenu(dockMenu)
 | 
					app.dock.setMenu(dockMenu)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -82,10 +82,11 @@ const {app, Menu} = require('electron')
 | 
				
			||||||
const dockMenu = Menu.buildFromTemplate([
 | 
					const dockMenu = Menu.buildFromTemplate([
 | 
				
			||||||
  {label: 'New Window', click () { console.log('New Window') }},
 | 
					  {label: 'New Window', click () { console.log('New Window') }},
 | 
				
			||||||
  {label: 'New Window with Settings',
 | 
					  {label: 'New Window with Settings',
 | 
				
			||||||
  submenu: [
 | 
					    submenu: [
 | 
				
			||||||
    {label: 'Basic'},
 | 
					      {label: 'Basic'},
 | 
				
			||||||
    {label: 'Pro'}
 | 
					      {label: 'Pro'}
 | 
				
			||||||
  ]},
 | 
					    ]
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
  {label: 'New Command...'}
 | 
					  {label: 'New Command...'}
 | 
				
			||||||
])
 | 
					])
 | 
				
			||||||
app.dock.setMenu(dockMenu)
 | 
					app.dock.setMenu(dockMenu)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue