Could be. Just remove the ReloadUI() command by putting -- in front of it and try again.
But normally the event_player_activated should only load once, and I've unregistered it too so it definately only loads once.
Is your addon's folder name and the name in the txt + the txt file name + lua filenam itsself definately this?
"AdvancedLanguageSelector"
e.g.
\live\AddOns\AdvancedLanguageSelector\
AdvancedLanguageSelector.txt
AdvancedLanguageSelector.lua
Inside the txt file
## Title: AdvancedLanguageSelector
## APIVersion: 100024
It needs to be the same like AdvancedLanguageSelector.name as your code is checking in the function OnAddonLoaded:
if addonName == AdvancedLanguageSelector.name then
...
end
|