standardize
This commit is contained in:
parent
c34d868609
commit
f80e81bf9f
2 changed files with 26 additions and 14 deletions
|
@ -651,15 +651,21 @@ app.setJumpList([
|
||||||
name: 'Tools',
|
name: 'Tools',
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
type: 'task', title: 'Tool A',
|
type: 'task',
|
||||||
program: process.execPath, args: '--run-tool-a',
|
title: 'Tool A',
|
||||||
icon: process.execPath, iconIndex: 0,
|
program: process.execPath,
|
||||||
|
args: '--run-tool-a',
|
||||||
|
icon: process.execPath,
|
||||||
|
iconIndex: 0,
|
||||||
description: 'Runs Tool A'
|
description: 'Runs Tool A'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'task', title: 'Tool B',
|
type: 'task',
|
||||||
program: process.execPath, args: '--run-tool-b',
|
title: 'Tool B',
|
||||||
icon: process.execPath, iconIndex: 0,
|
program: process.execPath,
|
||||||
|
args: '--run-tool-b',
|
||||||
|
icon: process.execPath,
|
||||||
|
iconIndex: 0,
|
||||||
description: 'Runs Tool B'
|
description: 'Runs Tool B'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -668,14 +674,18 @@ app.setJumpList([
|
||||||
{ // has no name and no type so `type` is assumed to be "tasks"
|
{ // has no name and no type so `type` is assumed to be "tasks"
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
type: 'task', title: 'New Project',
|
type: 'task',
|
||||||
program: process.execPath, args: '--new-project',
|
title: 'New Project',
|
||||||
|
program: process.execPath,
|
||||||
|
args: '--new-project',
|
||||||
description: 'Create a new project.'
|
description: 'Create a new project.'
|
||||||
},
|
},
|
||||||
{ type: 'separator' },
|
{ type: 'separator' },
|
||||||
{
|
{
|
||||||
type: 'task', title: 'Recover Project',
|
type: 'task',
|
||||||
program: process.execPath, args: '--recover-project',
|
title: 'Recover Project',
|
||||||
|
program: process.execPath,
|
||||||
|
args: '--recover-project',
|
||||||
description: 'Recover Project'
|
description: 'Recover Project'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -119,10 +119,12 @@ 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', submenu: [
|
{label: 'New Window with Settings',
|
||||||
{label: 'Basic'},
|
submenu: [
|
||||||
{label: 'Pro'}
|
{label: 'Basic'},
|
||||||
]},
|
{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