Adapt Context-Menu to add Itemgroups and Items
All checks were successful
E2E Testing / test (push) Successful in 1m32s
All checks were successful
E2E Testing / test (push) Successful in 1m32s
This commit is contained in:
parent
e1e9647b13
commit
c66049c4d8
23
app/main.ts
23
app/main.ts
@ -96,6 +96,29 @@ function createWindow(): BrowserWindow {
|
|||||||
click: () => {
|
click: () => {
|
||||||
win!.webContents.send('context-menu', "new-character");
|
win!.webContents.send('context-menu', "new-character");
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Itemgroup",
|
||||||
|
submenu: [
|
||||||
|
{
|
||||||
|
label: "Abstract Itemgroup",
|
||||||
|
click: () => {
|
||||||
|
win!.webContents.send('context-menu', "new-itemgroup_abstract")
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Concrete Itemgroup",
|
||||||
|
click: () => {
|
||||||
|
win!.webContents.send('context-menu', "new-itemgroup_concrete")
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Item",
|
||||||
|
click: () => {
|
||||||
|
win!.webContents.send("context-menu", "new-item")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user