mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- fixed an error popping up whenever a user had icehud disabled in its settings and tried to access the config page
This commit is contained in:
@ -251,10 +251,11 @@ function IceHUD:OnEnable(isFirst)
|
|||||||
if LibDualSpec then
|
if LibDualSpec then
|
||||||
LibDualSpec:EnhanceDatabase(self.db, "IceHUD")
|
LibDualSpec:EnhanceDatabase(self.db, "IceHUD")
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
--@debug@
|
--@debug@
|
||||||
IceHUD_Options:OnLoad()
|
IceHUD_Options:OnLoad()
|
||||||
--@end-debug@
|
--@end-debug@
|
||||||
end
|
|
||||||
|
|
||||||
if isFirst then
|
if isFirst then
|
||||||
self:SetDebugging(self.IceCore:GetDebug())
|
self:SetDebugging(self.IceCore:GetDebug())
|
||||||
|
@ -653,7 +653,7 @@ function IceHUD_Options:OnLoad()
|
|||||||
self.options.args.profiles = LibStub("AceDBOptions-3.0"):GetOptionsTable(IceHUD.db)
|
self.options.args.profiles = LibStub("AceDBOptions-3.0"):GetOptionsTable(IceHUD.db)
|
||||||
|
|
||||||
-- Add dual-spec support
|
-- Add dual-spec support
|
||||||
if LibDualSpec then
|
if IceHUD.db.profile.enable and LibDualSpec then
|
||||||
LibDualSpec:EnhanceOptions(IceHUD_Options.options.args.profiles, IceHUD.db)
|
LibDualSpec:EnhanceOptions(IceHUD_Options.options.args.profiles, IceHUD.db)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user