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

FlightData: allow plugin tab visibility to persist #3478

Merged

Conversation

robertlong13
Copy link
Collaborator

This addition of saveTabControlActions here means that users cannot save their visibility preferences for the plugin-added tabs. Plugin tabs don't exist when this first gets called, so their visibility settings get wiped out on startup.

Currently, plugins have to do one of the following:

  1. Force the tab on every time, making the user disable the plugin to hide the tab
  2. Force the user to unhide the tab every time
  3. Make a redundant setting to watch the tabcontrolactions setting and save a backup of the user's preference to restore later.

Removing this line should have no negative impacts.

This call to saveTabControlActions in unnecessary, and tabs added by
plugins won't exist yet when this gets called the first time, so they
get cleared from the settings.
@robertlong13 robertlong13 requested a review from meee1 January 16, 2025 03:42
@meee1 meee1 merged commit 49dbf7c into ArduPilot:master Jan 17, 2025
6 checks passed
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.

2 participants