mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- made sure to call UnregisterUnitWatch whenever the FocusHealth or a CustomHealth module is unloaded
This commit is contained in:
@ -119,6 +119,8 @@ end
|
|||||||
function IceCustomHealth.prototype:Disable(core)
|
function IceCustomHealth.prototype:Disable(core)
|
||||||
IceCustomHealth.super.prototype.Disable(self, core)
|
IceCustomHealth.super.prototype.Disable(self, core)
|
||||||
|
|
||||||
|
UnregisterUnitWatch(self.frame)
|
||||||
|
|
||||||
self:CancelTimer(self.scheduledEvent, true)
|
self:CancelTimer(self.scheduledEvent, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -316,6 +316,8 @@ end
|
|||||||
function FocusHealth.prototype:Disable(core)
|
function FocusHealth.prototype:Disable(core)
|
||||||
FocusHealth.super.prototype.Disable(self, core)
|
FocusHealth.super.prototype.Disable(self, core)
|
||||||
|
|
||||||
|
UnregisterUnitWatch(self.frame)
|
||||||
|
|
||||||
if self.moduleSettings.hideBlizz then
|
if self.moduleSettings.hideBlizz then
|
||||||
self:ShowBlizz()
|
self:ShowBlizz()
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user