Browse Source

Fix for using menu action lambdas in the Mac menu bar

tags/2021-05-28
jules 6 years ago
parent
commit
cce26202ab
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      modules/juce_gui_basics/native/juce_mac_MainMenu.mm

+ 6
- 0
modules/juce_gui_basics/native/juce_mac_MainMenu.mm View File

@@ -200,6 +200,12 @@ public:
{ {
if (currentModel != nullptr) if (currentModel != nullptr)
{ {
if (item.action != nullptr)
{
MessageManager::callAsync (item.action);
return;
}
if (item.customCallback != nullptr) if (item.customCallback != nullptr)
if (! item.customCallback->menuItemTriggered()) if (! item.customCallback->menuItemTriggered())
return; return;


Loading…
Cancel
Save