Yeah -- nUI does a similar thing... it creates the "default" settings for the saved variables when the addon it loaded. But what appears to be happening here is that if the user creates a character and exits WoW without having logged in on the character, WoW is creating a saved variables file with the saved variables set to empty tables. Once that happens, then when VARIABLES_LOADED fires WoW has overwritten the "default" settings with an empty table. I've never seen this happen until Patch 3.3
What I'm doing now is making a copy of the default settings in the "ADDON_LOADED" event and at the top of the "VARIABLES_LOADED" event I'm checking to see if the table is empty and if it is I replace it with the default settings -- at least that's what I'm testing as a solution in this file.
We'll see if that fixes it.
|