- drycode-moved LibDualSpec initialization from OnInitialize to OnEnable after the modules' frames are created and ready to go. maybe it'll actually work too!

This commit is contained in:
Parnic
2010-10-21 18:16:05 +00:00
parent a51fe8e06f
commit 127bffc330

View File

@ -866,12 +866,6 @@ function IceHUD:OnInitialize()
self:GenerateModuleOptions(true) self:GenerateModuleOptions(true)
self.options.args.colors.args = self.IceCore:GetColorOptions() self.options.args.colors.args = self.IceCore:GetColorOptions()
self.options.args.profiles = LibStub("AceDBOptions-3.0"):GetOptionsTable(self.db) self.options.args.profiles = LibStub("AceDBOptions-3.0"):GetOptionsTable(self.db)
-- Add dual-spec support
local LibDualSpec = LibStub('LibDualSpec-1.0', true)
if LibDualSpec then
LibDualSpec:EnhanceDatabase(self.db, "IceHUD")
LibDualSpec:EnhanceOptions(self.options.args.profiles, self.db)
end
--@debug@ --@debug@
self:SetupProfileImportButtons() self:SetupProfileImportButtons()
@ -1018,6 +1012,13 @@ function IceHUD:OnEnable(isFirst)
if self.db.profile.enable then if self.db.profile.enable then
self.IceCore:Enable() self.IceCore:Enable()
-- Add dual-spec support
local LibDualSpec = LibStub('LibDualSpec-1.0', true)
if LibDualSpec then
LibDualSpec:EnhanceDatabase(self.db, "IceHUD")
LibDualSpec:EnhanceOptions(self.options.args.profiles, self.db)
end
end end
if isFirst then if isFirst then