This website works better with JavaScript.
Home
Help
Sign In
DISTRHO
/
JUCE
mirror of
https://github.com/DISTRHO/JUCE
Watch
1
Star
0
Fork
0
Code
Releases
1
Activity
Browse Source
Fix for using menu action lambdas in the Mac menu bar
tags/2021-05-28
jules
6 years ago
parent
c88611e5c8
commit
cce26202ab
1 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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 (item.action != nullptr)
{
MessageManager::callAsync (item.action);
return;
}
if (item.customCallback != nullptr)
if (! item.customCallback->menuItemTriggered())
return;
Write
Preview
Loading…
Cancel
Save