player: clean up dropdown code

This commit is contained in:
shagu
2017-07-07 18:02:55 +02:00
parent 13272adc85
commit 587b175e91
2 changed files with 8 additions and 7 deletions
+3 -1
View File
@@ -991,7 +991,9 @@ function pfUI.uf:ClickAction(button)
-- dropdown menues
if button == "RightButton" then
if label == "player" then
ToggleDropDownMenu(1, nil, pfUI.uf.player.Dropdown,"cursor")
UIDropDownMenu_Initialize(PlayerFrameDropDown, pfUI.uf.player.dropdown.Init, "MENU")
pfUI.uf.player.dropdown.rebuild = true
ToggleDropDownMenu(1, nil, PlayerFrameDropDown, "cursor")
elseif label == "target" then
ToggleDropDownMenu(1, nil, TargetFrameDropDown, "cursor")
elseif label == "pet" then