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:
parent
6ae99f4343
commit
e0b0920819
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue