From 127bffc33040acee153c7276a606102038528921 Mon Sep 17 00:00:00 2001 From: Parnic Date: Thu, 21 Oct 2010 18:16:05 +0000 Subject: [PATCH] - drycode-moved LibDualSpec initialization from OnInitialize to OnEnable after the modules' frames are created and ready to go. maybe it'll actually work too! --- IceHUD.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/IceHUD.lua b/IceHUD.lua index 4a7c16f..6f0091e 100644 --- a/IceHUD.lua +++ b/IceHUD.lua @@ -866,12 +866,6 @@ function IceHUD:OnInitialize() self:GenerateModuleOptions(true) self.options.args.colors.args = self.IceCore:GetColorOptions() 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@ self:SetupProfileImportButtons() @@ -1018,6 +1012,13 @@ function IceHUD:OnEnable(isFirst) if self.db.profile.enable then 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 if isFirst then