Hi, I have made a little addon and a part of it ceased working with patch 3.2. This addon of mine uses a library called CandyBar for various functions and it seems that, being load on demand, CandyBar doesn't initially get loaded when it's supposed to be. My addon uses Ace3 and I attempt to load the library like this:
Code:
function Addon:InitCandy()
if LoadAddOn("CandyBar") then
self.candy = LibStub:GetLibrary("CandyBar-2.0")
-- and here I would setup the bars
end
end
local db
function Addon:OnInitialize()
self:InitConfig()
db = self.db.profile
self:CreateFrames()
self:InitCandy()
end
But apparently the LoadAddOn function returns nil, since the code inside the if statement doesn't get executed, thus requiring me to manually load the library ingame - which, for some reason, works... Any ideas on how to make it work again would be greatly appreciated. Thank you!