View Single Post
08/30/18, 12:07 PM   #10
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
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
  Reply With Quote