- Moved call to CVarUpdate() to happen later in the startup sequence.

This commit is contained in:
Parnic
2014-04-27 20:06:15 +00:00
parent ea4e52174b
commit 5b8a3008bd

View File

@ -15,8 +15,6 @@ function CastBar.prototype:init()
self:SetDefaultColor("CastNotInRange", 200, 200, 200)
self.unit = "player"
self:CVarUpdate()
end
@ -304,6 +302,8 @@ function CastBar.prototype:Enable(core)
self:RegisterEvent("CVAR_UPDATE", "CVarUpdate")
self:CVarUpdate()
if self.moduleSettings.enabled and not self.moduleSettings.showBlizzCast then
self:ToggleBlizzCast(false)
end