loot: fix nil error in dropdownmenu

Thanks @Artur91425
This commit is contained in:
shagu
2019-03-31 14:59:20 +02:00
parent 22b00b1289
commit f2a2f5dbbd
+2 -1
View File
@@ -39,7 +39,7 @@ pfUI:RegisterModule("loot", function ()
if to >= 1 then if to >= 1 then
local _,_,_,quality = GetLootSlotInfo(slot) local _,_,_,quality = GetLootSlotInfo(slot)
if quality >= tonumber(C.loot.rollannouncequal) then if quality >= tonumber(C.loot.rollannouncequal) then
SendChatMessageWide(T["Random Rolling "]..GetLootSlotLink(slot)) SendChatMessageWide(T["Random Rolling"].." "..GetLootSlotLink(slot))
if C.loot.rollannounce == "1" then if C.loot.rollannounce == "1" then
local k,names = 1, "" local k,names = 1, ""
for i=1,to do for i=1,to do
@@ -651,6 +651,7 @@ pfUI:RegisterModule("loot", function ()
if event == "LOOT_CLOSED" then if event == "LOOT_CLOSED" then
StaticPopup_Hide("LOOT_BIND") StaticPopup_Hide("LOOT_BIND")
HideUIPanel(this) HideUIPanel(this)
if DropDownList1:IsShown() then CloseDropDownMenus() end
for _, v in pairs(this.slots) do for _, v in pairs(this.slots) do
v:Hide() v:Hide()
end end