Hi Guys,
I'm trying to make a quick way to set all profiles for a UI in one go, so I made a mini-addon with a slash command. So far it all works fine with this script:
Code:
SLASH_KaitInstaller1 = "/kaitinstall";
function SlashCmdList.KaitInstaller(msg)
Grid.db:SetProfile("DPS 5/10man")
SLDataText.db:SetProfile("Default")
print("Success! All profiles installed. You now need to type /reload")
end
But as you can see, because some of the addons don't really set themselves up right until you reload the UI, I'll have to get people to type /kaitinstall and then /reload. What I'd like is for it to load the profiles then reload all in one move. BUT, when I add a Reload() at the end of the function like this...
Code:
SLASH_KaitInstaller1 = "/kaitinstall";
function SlashCmdList.KaitInstaller(msg)
Grid.db:SetProfile("DPS 5/10man")
SLDataText.db:SetProfile("Default")
ReloadUI()
end
... it does reload the UI, but no longer sets the profiles. What am I doing wrong here? I suspect it's something fundamental/basic but I have no clue...