From 8f6a8c9ba6b0573e32f8732f79e1d59a68dbd1fe Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 15 Jan 2017 20:12:51 +0100 Subject: [PATCH] target: close dropdown menus when target is hidden --- modules/target.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/target.lua b/modules/target.lua index e13ed934..f9bd676d 100644 --- a/modules/target.lua +++ b/modules/target.lua @@ -37,6 +37,10 @@ pfUI:RegisterModule("target", function () GameTooltip:FadeOut() end) + pfUI.uf.target:SetScript("OnHide", function() + CloseDropDownMenus() + end) + pfUI.uf.target:SetScript("OnClick", function () if arg1 == "RightButton" then ToggleDropDownMenu(1, nil, TargetFrameDropDown, "cursor")