From e9265695099e6e54995d031e032932b804bb6850 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 2 Jul 2017 17:42:26 +0200 Subject: [PATCH] player: locale independent instance reset --- api/unitframes.lua | 3 --- modules/player.lua | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index 3b33345d..f9e315d5 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -961,9 +961,6 @@ function pfUI.uf:ClickAction(button) if button == "RightButton" then if label == "player" then ToggleDropDownMenu(1, nil, pfUI.uf.player.Dropdown,"cursor") - if UnitIsPartyLeader("player") then - UIDropDownMenu_AddButton({text = "Reset Instances", func = ResetInstances, notCheckable = 1}, 1) - end elseif label == "target" then ToggleDropDownMenu(1, nil, TargetFrameDropDown, "cursor") elseif label == "pet" then diff --git a/modules/player.lua b/modules/player.lua index 6de324ce..4a7be05b 100644 --- a/modules/player.lua +++ b/modules/player.lua @@ -44,7 +44,7 @@ pfUI:RegisterModule("player", function () function pfUI.uf.player.Dropdowni() -- add reset button when alone if not (UnitInRaid("player") or GetNumPartyMembers() > 0) then - UIDropDownMenu_AddButton({text = "Reset Instances", func = ResetInstances, notCheckable = 1}, 1) + UIDropDownMenu_AddButton({text = RESET_INSTANCES, func = ResetInstances, notCheckable = 1}, 1) end UnitPopup_ShowMenu(pfUI.uf.player.Dropdown, "SELF", "player") end