Browse Source

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

tags/2021-05-28
hogliux 7 years ago
parent
commit
e0b0920819
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      modules/juce_gui_basics/native/juce_mac_MainMenu.mm

+ 4
- 0
modules/juce_gui_basics/native/juce_mac_MainMenu.mm 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);


Loading…
Cancel
Save