Enhanced/Nameplates: secure hook onhide
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user