This commit is contained in:
Crum
2018-08-09 23:33:42 -05:00
parent c1cbc91052
commit 091c312f7f
+2 -1
View File
@@ -716,14 +716,15 @@ function B:UpdateAll()
end end
function B:OnEvent() function B:OnEvent()
local bag, slot = arg1, arg2
if event == "ITEM_LOCK_CHANGED" or event == "ITEM_UNLOCKED" then if event == "ITEM_LOCK_CHANGED" or event == "ITEM_UNLOCKED" then
local bag, slot = arg1, arg2
if bag == KEYRING_CONTAINER then if bag == KEYRING_CONTAINER then
B:UpdateKeySlot(slot) B:UpdateKeySlot(slot)
else else
this:UpdateSlot(bag, slot) this:UpdateSlot(bag, slot)
end end
elseif event == "BAG_UPDATE" then elseif event == "BAG_UPDATE" then
local bag = arg1
if bag == KEYRING_CONTAINER then if bag == KEYRING_CONTAINER then
if not _G["ElvUIKeyFrameItem"..GetKeyRingSize()] then if not _G["ElvUIKeyFrameItem"..GetKeyRingSize()] then
B:Layout(false) B:Layout(false)