Adapt Context-Menu to add Itemgroups and Items
All checks were successful
E2E Testing / test (push) Successful in 1m32s

This commit is contained in:
Sebastian Böckelmann 2024-05-05 18:29:44 +02:00
parent e1e9647b13
commit c66049c4d8

View File

@ -96,6 +96,29 @@ function createWindow(): BrowserWindow {
click: () => {
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")
}
}
]
}
]