Cancel talent timers when tooltip is hidden
Scott Sibley [08-05-10 - 04:11]
Cancel talent timers when tooltip is hidden
diff --git a/Modules/Text.lua b/Modules/Text.lua
index d9a85cb..23705c2 100644
--- a/Modules/Text.lua
+++ b/Modules/Text.lua
@@ -721,3 +721,14 @@ function mod:SetUnit()
GameTooltip:Show()
end
+
+function mod:OnHide()
+ if talentTimer then
+ self:CancelTimer(talentTimer)
+ talentTimer = nil
+ end
+ if expireTimer then
+ self:CancelTimer(expireTimer)
+ expireTimer = nil
+ end
+end