mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- respect the user's mod-wide "enabled" setting when changing profiles (ticket #117)
- also cleaned up some logic that could cause errors when enabling the mod due to a profile switch when the player initially loaded with it disabled
This commit is contained in:
14
IceHUD.lua
14
IceHUD.lua
@ -245,12 +245,12 @@ function IceHUD:OnEnable(isFirst)
|
||||
|
||||
if self.db.profile.enable then
|
||||
self.IceCore:Enable()
|
||||
end
|
||||
|
||||
-- Add dual-spec support
|
||||
local LibDualSpec = LibStub('LibDualSpec-1.0', true)
|
||||
if LibDualSpec then
|
||||
LibDualSpec:EnhanceDatabase(self.db, "IceHUD")
|
||||
end
|
||||
-- Add dual-spec support
|
||||
local LibDualSpec = LibStub('LibDualSpec-1.0', true)
|
||||
if LibDualSpec then
|
||||
LibDualSpec:EnhanceDatabase(self.db, "IceHUD")
|
||||
end
|
||||
|
||||
--@debug@
|
||||
@ -443,7 +443,9 @@ end
|
||||
|
||||
function IceHUD:PostProfileChanged(db, newProfile)
|
||||
self:NotifyNewDb()
|
||||
self.IceCore:Enable()
|
||||
if self.db.profile.enable then
|
||||
self.IceCore:Enable()
|
||||
end
|
||||
end
|
||||
|
||||
function IceHUD:ProfileReset()
|
||||
|
Reference in New Issue
Block a user