fix: refresh trackedItemBar and QuestItemBar at the end of sort

This commit is contained in:
Vati
2026-03-10 02:15:34 +04:00
parent 61924d4180
commit f6ff579ce5
4 changed files with 26 additions and 62 deletions
+2
View File
@@ -373,6 +373,8 @@ function TrackedItemBar:Initialize()
-- Register for events with debouncing to prevent lag on rapid bag updates
local bagUpdatePending = false
addon.Modules.Events:Register("BAG_UPDATE", function()
-- Skip updates while sorting is in progress (sort completion will trigger update)
if addon.Modules.SortEngine and addon.Modules.SortEngine.sortingInProgress then return end
if bagUpdatePending then return end
bagUpdatePending = true
-- Debounce: wait 0.15 seconds before updating (uses pooled timer)