From 28af06bc697a38e5ad943ca2a2d44b0c1f1bad22 Mon Sep 17 00:00:00 2001 From: ArthurHeitmann <37270165+ArthurHeitmann@users.noreply.github.com> Date: Sun, 25 Aug 2024 02:15:01 +0200 Subject: [PATCH] join bnk context menu & actions --- .../hierarchy/types/BnkHierarchyEntry.dart | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/lib/stateManagement/hierarchy/types/BnkHierarchyEntry.dart b/lib/stateManagement/hierarchy/types/BnkHierarchyEntry.dart index 1100e42..3d1e887 100644 --- a/lib/stateManagement/hierarchy/types/BnkHierarchyEntry.dart +++ b/lib/stateManagement/hierarchy/types/BnkHierarchyEntry.dart @@ -492,16 +492,7 @@ class BnkHierarchyEntry extends GenericFileHierarchyEntry { @override List getContextMenuActions() { return [ - HierarchyEntryAction( - name: "Remove prefetch WEMs", - icon: Icons.playlist_remove, - action: _removePrefetchWems, - ), - HierarchyEntryAction( - name: "Generate cues info file", - icon: Icons.playlist_add_check, - action: _generateCuesTxtFile, - ), + ...getActions(), ...super.getContextMenuActions() ]; } @@ -511,8 +502,19 @@ class BnkHierarchyEntry extends GenericFileHierarchyEntry { return [ HierarchyEntryAction( name: "Create Wwise project", + icon: Icons.drive_folder_upload, action: () => showWwiseProjectGeneratorPopup(path), ), + HierarchyEntryAction( + name: "Remove prefetch WEMs", + icon: Icons.playlist_remove, + action: _removePrefetchWems, + ), + HierarchyEntryAction( + name: "Generate cues info file", + icon: Icons.playlist_add_check, + action: _generateCuesTxtFile, + ), ...super.getActions() ]; }