Fix duplicate codes appearing in list - #143
Conversation
|
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. |
|
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. |
|
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. |
Newest commit works, but I'm not sure it'll work for game switching (untested) |
|
Closing since your fix is good enough for me |
|
You can still make the PR for the |
Simple fix to a bug introduced in commit 1230689
The codes list has duplicate codes until you push "Update Codes" every time.
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.