mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40: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,11 +251,12 @@ function IceHUD:OnEnable(isFirst)
|
||||
if LibDualSpec then
|
||||
LibDualSpec:EnhanceDatabase(self.db, "IceHUD")
|
||||
end
|
||||
--@debug@
|
||||
IceHUD_Options:OnLoad()
|
||||
--@end-debug@
|
||||
end
|
||||
|
||||
--@debug@
|
||||
IceHUD_Options:OnLoad()
|
||||
--@end-debug@
|
||||
|
||||
if isFirst then
|
||||
self:SetDebugging(self.IceCore:GetDebug())
|
||||
self.debugFrame = ChatFrame2
|
||||
|
@ -653,7 +653,7 @@ function IceHUD_Options:OnLoad()
|
||||
self.options.args.profiles = LibStub("AceDBOptions-3.0"):GetOptionsTable(IceHUD.db)
|
||||
|
||||
-- Add dual-spec support
|
||||
if LibDualSpec then
|
||||
if IceHUD.db.profile.enable and LibDualSpec then
|
||||
LibDualSpec:EnhanceOptions(IceHUD_Options.options.args.profiles, IceHUD.db)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user