From 988e9d9dfa9dfe983b25ecb26354f6bc59ab465a Mon Sep 17 00:00:00 2001 From: Noshei <8866000+Noshei@users.noreply.github.com> Date: Mon, 29 Jan 2024 22:09:55 -0700 Subject: [PATCH] 2.0.3 fix for bug when an item's count goes to 0 after being positive (like when prospecting) --- GatheringTracker.lua | 5 +---- GatheringTracker.toc | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/GatheringTracker.lua b/GatheringTracker.lua index 60cc423..c568016 100644 --- a/GatheringTracker.lua +++ b/GatheringTracker.lua @@ -703,10 +703,7 @@ function GT:PrepareDataForDisplay(event, wait) for itemID, itemData in pairs(GT.InventoryData) do GT.Debug("Check for Items to remove from Display", 4, itemID) if GT:SumTable(itemData) == 0 then - GT.InventoryData[itemID] = nil - if GT.Display.Frames[tonumber(itemID)] then - GT:RemoveDiaplayRow(tonumber(itemID)) - end + GT:RemoveDisabledItemData(flase, itemID) end if not (#itemData == #GT.sender) then local diff = #GT.sender - #itemData diff --git a/GatheringTracker.toc b/GatheringTracker.toc index cf35e9a..3a07db0 100644 --- a/GatheringTracker.toc +++ b/GatheringTracker.toc @@ -2,7 +2,7 @@ ## Title: Gathering Tracker ## Notes: Addon for tracking gathered items, supports solo players and groups ## Author: Noshei -## Version: 2.0.2 +## Version: 2.0.3 ## OptionalDeps: TradeSkillMaster ## SavedVariables: GatheringTrackerDB ## AddonCompartmentFunc: GatheringTracker_OnAddonCompartmentClick