mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40: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)
|
||||
IceCustomHealth.super.prototype.Disable(self, core)
|
||||
|
||||
UnregisterUnitWatch(self.frame)
|
||||
|
||||
self:CancelTimer(self.scheduledEvent, true)
|
||||
end
|
||||
|
||||
|
@ -316,6 +316,8 @@ end
|
||||
function FocusHealth.prototype:Disable(core)
|
||||
FocusHealth.super.prototype.Disable(self, core)
|
||||
|
||||
UnregisterUnitWatch(self.frame)
|
||||
|
||||
if self.moduleSettings.hideBlizz then
|
||||
self:ShowBlizz()
|
||||
end
|
||||
|
Reference in New Issue
Block a user