target: close dropdown menus when target is hidden

This commit is contained in:
shagu
2017-01-15 20:12:51 +01:00
parent 1e4ff722e5
commit 8f6a8c9ba6
+4
View File
@@ -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")