Omar Chanouha-2 wrote:
When I removed the assert from the code the program started properly. I believe the assert is checking to make sure that the first instance of a period is coming at the end of the pref_key, or that one does not exist? Either way, why are you checking for this? Why does it matter?
Hello Omar,
The preferences were recently rewritten and a new path syntax was implemented: instead of two strings that denote where a given value is stored in the preferences file, only one is used after the rewrite. Additionally, the separator used in those strings was changed from a dot to a slash. This assert was intended to catch places where the old syntax was used - if there's a dot in the path, it must be a leftover from before the rewrite, so it should be changed. Right now it seems there are no places left which use the old syntax, so it will be removed to allow keys with dots in their names.
Regards, Krzysztof Kosiński