Danrejk / Here-To-Slay-Card-Maker

A C# program made to make custom Cards for the "Here To Slay" card game. The designs are made as accurate as we were able to recreate them. (Program posiada polską wersję językową)
13 stars 8 forks source link

Program can remember last chosen language, even if it doesn't exist anymore. #24

Open Beukot opened 3 months ago

Beukot commented 3 months ago

When choosing a language, program will save this choice even after its shutdown. If user decides to delete a language in lang.json, language indexes will shift, so for example: if German had index 2 and was removed, Dutch which had index 3 will now have index 2. However, if German was last on the list and thus index 2 was the last index, the program will still try to load it and since language with index 2 doesn't exist, it will throw an index ot of range error and will crash.