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 checkbox sorting #3297

Merged
merged 1 commit into from
Feb 22, 2021
Merged

Conversation

HebaruSan
Copy link
Member

Problem

If you have an AD mod and sort by the Installed column, the AD mod will be shown after all the non-installed compatible mods. This is bad because the installed mods should be listed together at the top.

Originally the sort order of a checkbox column was:

  • Checked checkboxes
  • Text not containing "-"
  • Unchecked checkboxes
  • Text containing "-"

Cause

In #3205 the checkbox column sort logic was rewritten and the original logic was lost; it is now:

  • Checked checkboxes
  • Unchecked checkboxes
  • Text of any kind, regardless of content

Changes

Now the sort order for a checkbox column is restored to what it was.

@HebaruSan HebaruSan added Bug Something is not working as intended Easy This is easy to fix GUI Issues affecting the interactive GUI Pull request labels Feb 19, 2021
@HebaruSan HebaruSan requested a review from DasSkelett February 19, 2021 20:54
Copy link
Member

@DasSkelett DasSkelett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and sorts correctly!

@HebaruSan HebaruSan merged commit b748670 into KSP-CKAN:master Feb 22, 2021
@HebaruSan HebaruSan deleted the fix/checkbox-sort branch February 22, 2021 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is not working as intended Easy This is easy to fix GUI Issues affecting the interactive GUI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants