improved refresh after disenchanting an item

This commit is contained in:
Anch
2023-11-01 01:47:37 +13:00
parent b3c527e464
commit 810f8de13a
2 changed files with 3 additions and 8 deletions
-1
View File
@@ -151,7 +151,6 @@ local profSubList = {
}
function PM:UNIT_SPELLCAST_SUCCEEDED(event, arg1, arg2)
PM:RemoveItem(arg2)
PM:UpdateItemFrame(arg2)
end
local cTip = CreateFrame("GameTooltip","cTooltip",nil,"GameTooltipTemplate")
+3 -7
View File
@@ -45,21 +45,17 @@ local InventoryTypes = {
function PM:InventoryFrame_Open(isEnabled)
if not isEnabled then return end
if mainframe:IsVisible() then
PM:UnregisterEvent("BAG_UPDATE")
mainframe:Hide()
else
mainframe:Show()
PM:RegisterEvent("BAG_UPDATE")
end
end
function PM:UpdateItemFrame(arg2)
if arg2 ~= "Disenchant" then return end
PM:RegisterEvent("BAG_UPDATE")
PM:UnregisterEvent("UNIT_SPELLCAST_SUCCEEDED")
end
function PM:BAG_UPDATE()
PM:ScheduleTimer(function() PM:SearchBags() end, .10)
PM:UnregisterEvent("BAG_UPDATE")
end
local function filterCheck(quality, bagID, slotID)