Merge pull request #7379 from electron/seperate-structs

Move reused object structures to a standard structures folder
This commit is contained in:
Zeke Sikelianos 2016-10-11 22:28:39 -07:00 committed by GitHub
commit 6b7e375963
18 changed files with 205 additions and 200 deletions

View file

@ -119,10 +119,12 @@ const {app, Menu} = require('electron')
const dockMenu = Menu.buildFromTemplate([
{label: 'New Window', click () { console.log('New Window') }},
{label: 'New Window with Settings', submenu: [
{label: 'Basic'},
{label: 'Pro'}
]},
{label: 'New Window with Settings',
submenu: [
{label: 'Basic'},
{label: 'Pro'}
]
},
{label: 'New Command...'}
])
app.dock.setMenu(dockMenu)