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

Fix texture pack sorting in content tab #12727

Merged
merged 3 commits into from
Sep 10, 2022

Conversation

rollerozxa
Copy link
Member

In the content tab, games and mods are sorted in alphabetical order. However, texture packs are sorted in reverse order. This PR fixes that by reversing the order that texture packs are sorted.

To do

This PR is Ready for Review.

How to test

See that texture packs are now sorted properly.

@SmallJoker SmallJoker added the Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines label Aug 27, 2022
@sfan5
Copy link
Member

sfan5 commented Sep 2, 2022

Is there are change needed here?

@rubenwardy
Copy link
Member

If a texture pack doesn't have a title, what's the value of .title? Make sure it's the name and not the empty string or nil

@SmallJoker
Copy link
Member

@rubenwardy Titles default to the texture pack directory name in that case.

I will also sort the game listing to have the content tab consistent.

@sfan5 sfan5 merged commit 2133fc8 into minetest:master Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix 🐛 PRs that fix a bug @ Content / PkgMgr @ Mainmenu Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants