mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
http://www.wowace.com/projects/ice-hud/tickets/10-unable-to-reset-with-a-error/ - "Reset" configuration now works properly
This commit is contained in:
@ -209,11 +209,6 @@ end
|
||||
-- Configuration methods --
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
function IceCore.prototype:ResetSettings()
|
||||
self:ResetDB()
|
||||
ReloadUI()
|
||||
end
|
||||
|
||||
function IceCore.prototype:GetVerticalPos()
|
||||
return self.settings.verticalPos
|
||||
end
|
||||
|
@ -549,7 +549,7 @@ StaticPopupDialogs["ICEHUD_RESET"] =
|
||||
whileDead = 1,
|
||||
hideOnEscape = 1,
|
||||
OnAccept = function()
|
||||
IceHUD.IceCore:ResetSettings()
|
||||
IceHUD:ResetSettings()
|
||||
end
|
||||
}
|
||||
|
||||
@ -600,6 +600,11 @@ function IceHUD:OnEnable(isFirst)
|
||||
end
|
||||
end
|
||||
|
||||
function IceHUD:ResetSettings()
|
||||
self:ResetDB()
|
||||
ReloadUI()
|
||||
end
|
||||
|
||||
-- fubar stuff
|
||||
IceHUD.OnMenuRequest = IceHUD.options
|
||||
IceHUD.hasIcon = "Interface\\Icons\\Spell_Frost_Frost"
|
||||
|
Reference in New Issue
Block a user