Enhanced/Nameplates: secure hook onhide

This commit is contained in:
andrew6180
2023-05-23 10:57:26 -07:00
parent 2343eb2d99
commit 00e65c32c4
@@ -520,7 +520,7 @@ function ENP:UpdateAllSettings()
if E.db.enhanced.nameplates.chatBubbles or E.db.enhanced.nameplates.titleCache then if E.db.enhanced.nameplates.chatBubbles or E.db.enhanced.nameplates.titleCache then
if not ENP:IsHooked(NP, "OnHide") then if not ENP:IsHooked(NP, "OnHide") then
ENP:Hook(NP, "OnHide", OnHideHook) ENP:Hook(NP, "OnHide", OnHideHook, true)
end end
elseif not E.db.enhanced.nameplates.chatBubbles and not E.db.enhanced.nameplates.titleCache then elseif not E.db.enhanced.nameplates.chatBubbles and not E.db.enhanced.nameplates.titleCache then
if ENP:IsHooked(NP, "OnHide") then if ENP:IsHooked(NP, "OnHide") then