-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
menu: make command-less menus more robust
The commit updates `menus` to not fail the layout when there are no commands attached to them, and instead log the error. Previously, if a command was unregistered and a command referenced it the layout would fail, and possibly also fail to start the application. The change also includes: - a bogus menu registration in `api-samples` to verify the feature in the future. - an api test to verify that registration does not fail for menus with invalid commands. Signed-off-by: vince-fugnitto <[email protected]>
- Loading branch information
1 parent
1dbed43
commit 84bca9b
Showing
4 changed files
with
14 additions
and
2 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
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
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
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