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

Add Tab Weights Support #619

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

robertthepie
Copy link
Contributor

Adds weight support for modoptions tabs for sorting purposes.
Section weight can be added to Sections in modoptions via an (int/float) weight variable.
If a weight is not present at the time of populataing the tabs the amount of tabs is used as a negative weight to maintain the current order.

Testing done:

  • Modoption tabs maintain current order if no weights present
  • Weights added to the modoptions file affect tab sorting

@Damgam
Copy link
Member

Damgam commented Apr 1, 2024

LGTM

@Damgam Damgam merged commit ffa85ec into beyond-all-reason:master Apr 1, 2024
@robertthepie robertthepie deleted the modoptionsSort branch April 2, 2024 15:05
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