From c66049c4d8f9809a1a7ab2bdd617f0a0008b005c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ckelmann?= Date: Sun, 5 May 2024 18:29:44 +0200 Subject: [PATCH] Adapt Context-Menu to add Itemgroups and Items --- app/main.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/app/main.ts b/app/main.ts index ba1a8b6..f6e57f9 100644 --- a/app/main.ts +++ b/app/main.ts @@ -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") + } + } + ] } ]