mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- 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:
13
IceHUD.lua
13
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
|
||||
|
Reference in New Issue
Block a user