Skip to content
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

Don't switch to selected tab on value change #771

Merged
merged 2 commits into from Mar 27, 2023

Conversation

Starlight220
Copy link
Member

Fixes #745

For some reason, the tab structure listeners were called also on value changes (and not just metadata changes). I've done some testing to ensure this doesn't break functionality, but I may have missed something.

@Starlight220
Copy link
Member Author

This has an issue with repeated calls from code to not work due to NT duplicate removal. It'll need the KeepDuplicates flag set on the robot-side publisher and possibly also the shuffleboard-side subscriber.

@Starlight220
Copy link
Member Author

I've extracted the tab selection to a separate listener (similar to how the tab array is separate), and now everything works correctly once the robot-code side changes in wpilibsuite/allwpilib#5198 are applied.

@PeterJohnson PeterJohnson merged commit 69b2dc2 into wpilibsuite:main Mar 27, 2023
8 checks passed
@Starlight220 Starlight220 deleted the tabswitch branch March 27, 2023 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shuffleboard continuously jumps back to start tab when using selectTab and kGyro
2 participants