1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00

macOS: Fixed an issue where the CustomCallback of a menu item would not be called if the menu item belongs to a native macOS menu

This commit is contained in:
hogliux 2017-09-29 18:14:02 +01:00
parent 6ae99f4343
commit e0b0920819

View file

@ -197,6 +197,10 @@ public:
{
if (currentModel != nullptr)
{
if (item.customCallback != nullptr)
if (! item.customCallback->menuItemTriggered())
return;
if (item.commandManager != nullptr)
{
ApplicationCommandTarget::InvocationInfo info (item.itemID);