mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Fix for using menu action lambdas in the Mac menu bar
This commit is contained in:
parent
c88611e5c8
commit
cce26202ab
1 changed files with 6 additions and 0 deletions
|
|
@ -200,6 +200,12 @@ public:
|
|||
{
|
||||
if (currentModel != nullptr)
|
||||
{
|
||||
if (item.action != nullptr)
|
||||
{
|
||||
MessageManager::callAsync (item.action);
|
||||
return;
|
||||
}
|
||||
|
||||
if (item.customCallback != nullptr)
|
||||
if (! item.customCallback->menuItemTriggered())
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue