unitframes: fix dropdown menus on later expansions

This commit is contained in:
shagu
2019-08-20 19:49:05 +02:00
parent f1f4fa4094
commit 2c8a7c9de5
+2 -2
View File
@@ -803,9 +803,9 @@ function pfUI.uf:RightClickAction(unit)
ToggleDropDownMenu(1, nil, TargetFrameDropDown, "cursor")
elseif unit == "pet" then
ToggleDropDownMenu(1, nil, PetFrameDropDown, "cursor")
elseif unit == "party" then
elseif unit == "party" or strfind(unit, "party%d") then
ToggleDropDownMenu(1, nil, getglobal("PartyMemberFrame" .. this.id .. "DropDown"), "cursor")
elseif unit == "raid" then
elseif unit == "raid" or strfind(unit, "raid%d") then
local name = this.lastUnit
local unitstr = this.label .. this.id
FriendsDropDown.displayMode = "MENU"