-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix nav_bar_button class method #766
Fix nav_bar_button class method #766
Conversation
Fixes jamonholmgren#666 Previously nav_bar_button would set an instance variable with the arguments for the last button added. This updates the nav_bar_button method to use an array to store the arguments so you can add multiple.
If you accidentally do |
It would put two entries into the array. When the screen is initialized it would call How do you think this should be handled?
I kinda think the second one makes more sense since it's probably the more common use-case, but defer to you guys. I can fix up the PR either way. |
ping @jamonholmgren |
Oh, sorry about this @jcarbo . lgtm! |
Fix nav_bar_button class method
I'll release a new version of ProMotion within a week. |
😄 |
Released in 2.6.0: https://github.com/infinitered/ProMotion/releases/tag/v2.6.0 |
Fixes #666
Previously nav_bar_button would set an instance variable with the arguments for the last button added. This updates the nav_bar_button method to use an array to store the arguments so you can add multiple.