Skip to content

Fix duplicate codes appearing in list - #143

Closed
dreamsyntax wants to merge 2 commits into
hedge-dev:mainfrom
dreamsyntax:code-dupes
Closed

Fix duplicate codes appearing in list#143
dreamsyntax wants to merge 2 commits into
hedge-dev:mainfrom
dreamsyntax:code-dupes

Conversation

@dreamsyntax

@dreamsyntax dreamsyntax commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Simple fix to a bug introduced in commit 1230689
The codes list has duplicate codes until you push "Update Codes" every time.

image

InitializeAsync will run on game change, so this will work properly for both the game switch and normal startup case.

Also added an unrelated gitignore update, because I use Rider and this was annoying me. I can move it to its own PR if you prefer.

@thesupersonic16

Copy link
Copy Markdown
Member

I cannot reproduce your issue, can you explain the steps you have taken?

Also trying to reproduce this has made me realise a different duplication issue when you have work codes.

@thesupersonic16

Copy link
Copy Markdown
Member

Please check if you can still reproduce the issue with the newest commit. The change should remove old replaced codes as it adds new codes.
Only issue I see is codes being in a different order when loaded from a codes file with multiple codes. Will need to fix this later.

@dreamsyntax

Copy link
Copy Markdown
Contributor Author

Sure, its very easy. Pull or build on or after commit (not beta 7 release) 1230689

Completely destroy all hedgemodmanager related data in config and var (I use --delete-data on flatpak remove)

Load SXSG in HMM. Go to Code tab. Note that there are duplicate codes, including if you search. If you click "Update Codes" the dupes go away, until the next time you restart HMM.

@dreamsyntax

Copy link
Copy Markdown
Contributor Author

Please check if you can still reproduce the issue with the newest commit.

Newest commit works, but I'm not sure it'll work for game switching (untested)

@dreamsyntax

Copy link
Copy Markdown
Contributor Author

Closing since your fix is good enough for me

@dreamsyntax dreamsyntax closed this Aug 1, 2026
@dreamsyntax
dreamsyntax deleted the code-dupes branch August 1, 2026 16:05
@thesupersonic16

Copy link
Copy Markdown
Member

You can still make the PR for the .gitignore if you like.

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