From 8a6bbc98bb7e1dd03cc5b717defacbb33e7ca04a Mon Sep 17 00:00:00 2001 From: Parnic Date: Wed, 27 Nov 2013 06:38:36 +0000 Subject: [PATCH] - Fixed a bug where buff/debuff watchers were not removing themselves from the central Update list when deleted. --- modules/CustomBar.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/CustomBar.lua b/modules/CustomBar.lua index 88ea875..2a800f3 100644 --- a/modules/CustomBar.lua +++ b/modules/CustomBar.lua @@ -69,6 +69,13 @@ function IceCustomBar.prototype:Enable(core) self:SetCustomTextColor(self.frame.bottomLowerText, self.moduleSettings.lowerTextColor) end +function IceCustomBar.prototype:Disable(core) + self.handlesOwnUpdates = false + IceHUD.IceCore:RequestUpdates(self, nil) + + IceCustomBar.super.prototype.Disable(self, core) +end + function IceCustomBar.prototype:FixupTextColors() if not self.moduleSettings.upperTextColor then self.moduleSettings.upperTextColor = {r=1, g=1, b=1}