mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed a bug that caused the /icehud slash command to not work when the addon was disabled (and therefore be unable to re-enable it). ouch!
This commit is contained in:
10
IceCore.lua
10
IceCore.lua
@ -92,7 +92,6 @@ function IceCore.prototype:Enable()
|
||||
self:DrawFrame()
|
||||
|
||||
for i = 1, table.getn(self.elements) do
|
||||
self.elements[i]:SetDatabase(self.settings)
|
||||
self.elements[i]:Create(self.IceHUDFrame)
|
||||
if (self.elements[i]:IsEnabled()) then
|
||||
self.elements[i]:Enable(true)
|
||||
@ -104,11 +103,16 @@ end
|
||||
|
||||
|
||||
function IceCore.prototype:ProfileChanged()
|
||||
self:SetModuleDatabases()
|
||||
|
||||
self:Redraw()
|
||||
end
|
||||
|
||||
|
||||
function IceCore.prototype:SetModuleDatabases()
|
||||
for i = 1, table.getn(self.elements) do
|
||||
self.elements[i]:SetDatabase(self.settings)
|
||||
end
|
||||
|
||||
self:Redraw()
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user