mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fix for custom modules generating a ton of errors if they're disabled while active (such as when changing profiles). there is still a bug where they stop running their updates like they're supposed to, but this will at least take care of the error spam
This commit is contained in:
@ -61,6 +61,12 @@ function IceBarElement.prototype:Enable()
|
||||
self:RegisterFontStrings()
|
||||
end
|
||||
|
||||
function IceBarElement.prototype:Disable(core)
|
||||
IceBarElement.super.prototype.Disable(self, core)
|
||||
|
||||
self.frame:SetScript("OnUpdate", nil)
|
||||
end
|
||||
|
||||
|
||||
function IceBarElement.prototype:RegisterFontStrings()
|
||||
if DogTag ~= nil and self.moduleSettings ~= nil and self.moduleSettings.usesDogTagStrings then
|
||||
|
Reference in New Issue
Block a user