Browse Source

Projucer: Show the menu for adding a new module when clicking the "+" button in the modules panel even if a module is currently selected

tags/2021-05-28
ed 7 years ago
parent
commit
da592adb69
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      extras/Projucer/Source/Project/UI/Sidebar/jucer_ModuleTreeItems.h

+ 6
- 0
extras/Projucer/Source/Project/UI/Sidebar/jucer_ModuleTreeItems.h View File

@@ -83,6 +83,12 @@ public:
return Icon (getIcons().singleModule, iconColour);
}
void showAddMenu() override
{
if (auto* parent = dynamic_cast<EnabledModulesItem*> (getParentItem()))
parent->showPopupMenu();
}
void showPopupMenu() override
{
PopupMenu menu;


Loading…
Cancel
Save