Skip to content

Commit

Permalink
Fixed a bug where removed sections may not draw correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed May 3, 2024
1 parent a561393 commit 4101675
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions views/gridview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ local function ClearButton(view, item)
local bagid, slotid = view:ParseSlotKey(item.slotkey)
cell:SetFreeSlots(bagid, slotid, -1, "Recently Deleted")
view:AddDeferredItem(item.slotkey)
local section = view:GetSlotSection(item.slotkey)
if section then
view:AddDirtySection(section.title:GetText())
end
view:AddDirtySection(item.itemInfo.category)
addon:GetBagFromBagID(bagid).drawOnClose = true
end
Expand Down

0 comments on commit 4101675

Please sign in to comment.