Skip to content

Comments

Fix Knossos Not sorting mods on startup#161

Merged
JohnAFernandez merged 1 commit intoKnossosNET:mainfrom
JohnAFernandez:SortingOfDoom
Mar 3, 2024
Merged

Fix Knossos Not sorting mods on startup#161
JohnAFernandez merged 1 commit intoKnossosNET:mainfrom
JohnAFernandez:SortingOfDoom

Conversation

@JohnAFernandez
Copy link
Contributor

There were two issues:

  1. The mod sorting was happening before the mods were loaded

  2. If the saved mod preference was loading by name, it would do nothing since that was the default.

This commit sets the initial value to unsorted, sorts when there are actually mods to sort, and only saves a non-unsorted preference.

Fixes #147

There were two issues:

1) The mod sorting was happening before the mods were loaded

2) If the saved mod preference was loading by name, it would do nothing since that was the default.

This commit sets the initial value to unsorted, sorts when there are actually mods to sort, and only saves a non-unsorted preference.
@JohnAFernandez JohnAFernandez added the fix Fix for a bug label Feb 20, 2024
@JohnAFernandez JohnAFernandez self-assigned this Feb 20, 2024
Copy link
Contributor

@wookieejedi wookieejedi 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 to me but would be happy to have another set of eyes on this PR, even though it's not that many lines.

@JohnAFernandez JohnAFernandez merged commit b76a1bf into KnossosNET:main Mar 3, 2024
notimaginative added a commit to notimaginative/Knossos.NET that referenced this pull request Mar 24, 2024
Removes ChangeSort() call from the UIThread as it already does it's business
in the UIThread and that appears to freak out on Mac.

Issue introduced as part of KnossosNET#161
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sorting issue (play tab)

2 participants