Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix SDLAddCommand initializer can't take a nil image #856

Merged
merged 2 commits into from
Feb 9, 2018

Conversation

joeljfischer
Copy link
Contributor

Fixes #846

This PR is ready for review.

Risk

This PR makes minor API changes. Note that although this technically changes an API (normally a major version change), because it is merely opening up the API for a broader range of inputs, it is a minor version change and will not affect any current integrators.

Testing Plan

Unit tests will be added

Summary

Allow AddCommand initializer to create a command with a parent but no icon.

Changelog

Enhancements
  • Updates SDLAddCommand initWithId:vrCommands:menuName:parentId:position:iconValue:iconType:iconTypehandler: to take a nullable iconValue and iconType instead of nonnull. This will not create an Image to be sent.

CLA

* Allow AddCommand initializer to create a command with a parent but no icon
* Allow handler to be nil
@joeljfischer joeljfischer added the bug A defect in the library label Jan 30, 2018
@joeljfischer joeljfischer added this to the 5.2.0 milestone Jan 30, 2018
@joeljfischer joeljfischer self-assigned this Jan 30, 2018
@joeljfischer joeljfischer changed the title Fix #846 Fix SDLAddCommand initializer can't take a nil image Jan 30, 2018
@joeljfischer joeljfischer merged commit 96f2b8d into develop Feb 9, 2018
@joeljfischer joeljfischer deleted the bugs/issue_846_addcommand_icon branch February 9, 2018 16:52
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug A defect in the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants