Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #11417: Allow EVENT_MENU_MAIN plugin events to return null
A plugin may decide not to print a menu entry via the EVENT_MENU_MAIN event hook based on which project is currently selected. Therefore the return value from EVENT_MENU_MAIN should be checked to make sure it isn't null. If it is null, then don't print anything in the menu. Signed-off-by: David Hicks <hickseydr@optusnet.com.au>
- Loading branch information
1 parent
8bc6b66
commit 321ac71
Showing
1 changed file
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters