|
|
@@ -76,7 +76,7 @@ void MenuItem::doAction() { |
|
|
|
// Consume event by default, but allow action to un-consume it to prevent the menu from being removed. |
|
|
|
eAction.consume(this); |
|
|
|
onAction(eAction); |
|
|
|
if (!cAction.target) |
|
|
|
if (!cAction.consumed) |
|
|
|
return; |
|
|
|
|
|
|
|
MenuOverlay* overlay = getAncestorOfType<MenuOverlay>(); |
|
|
@@ -86,5 +86,9 @@ void MenuItem::doAction() { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void MenuItem::onAction(const event::Action& e) { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} // namespace ui |
|
|
|
} // namespace rack |