From 8b39968db91efa90b8709c4556b0f6292ab79905 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 12 Jan 2019 17:40:49 +0100 Subject: [PATCH] api: remove autohide eventhandler --- api/api.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/api/api.lua b/api/api.lua index 4713e80e..572b5f23 100644 --- a/api/api.lua +++ b/api/api.lua @@ -823,11 +823,7 @@ function pfUI.api.EnableAutohide(frame, timeout) frame.hover:SetParent(frame) frame.hover:SetAllPoints(frame) frame.hover.parent = frame - - frame.hover:RegisterEvent("PLAYER_LEAVING_WORLD") - frame.hover:SetScript("OnEvent", function() - this:Hide() - end) + frame.hover:Show() local timeout = timeout frame.hover:SetScript("OnUpdate", function() @@ -850,7 +846,6 @@ function pfUI.api.DisableAutohide(frame) if not frame then return end if not frame.hover then return end - frame.hover:UnregisterAllEvents() frame.hover:SetScript("OnUpdate", nil) frame.hover:Hide() frame:SetAlpha(1)