It is possible to create several named profiles with the same name. This obviously isn't intended here and will confuse users. Fixing this should be easy by just checking if a profile with the same name already exists.
Screenshot:

cc @valentinvanelslande
i can't fix it because my laptop that i use for citra coding is broken (it's true)
This should also be fixed in cheats. Includes the Gateway cheat file parser.
If you want to fix this, don't forget to add the check in the INI loading.
In addition, profile names are reset when the emulator is closed and reopened. All are renamed default. It would be great to fix the two issues in one
In addition, profile names are reset when the emulator is closed and reopened. All are renamed default. It would be great to fix the two issues in one
Can you elaborate, describe the steps to reproduce? On my windows build I can't seem to be able to reproduce the issue, profile names persist just fine between sessions.
I fixed this already @Mates1500.
Most helpful comment
In addition, profile names are reset when the emulator is closed and reopened. All are renamed default. It would be great to fix the two issues in one