fix module enabling/disabling in various modules

This commit is contained in:
Hendrik Leppkes
2008-05-28 10:27:51 +00:00
parent 88f2eca87c
commit 3e3bd90c37
4 changed files with 11 additions and 1 deletions
+3
View File
@@ -33,6 +33,8 @@ function StanceBarMod:OnEnable()
self.bar:ClearSetPoint("CENTER")
self.bar:SetScript("OnEvent", StanceBar.OnEvent)
end
self.bar.disabled = nil
self:ToggleOptions()
self.bar:RegisterEvent("PLAYER_ENTERING_WORLD")
self.bar:RegisterEvent("UPDATE_SHAPESHIFT_FORMS")
@@ -48,6 +50,7 @@ end
function StanceBarMod:OnDisable()
if not self.bar then return end
self.bar.disabled = true
self.bar:UnregisterAllEvents()
self.bar:Hide()
self:ToggleOptions()