Skip to content

Commit

Permalink
remove categories instead of wiping them
Browse files Browse the repository at this point in the history
  • Loading branch information
DJSchaffner committed Mar 20, 2024
1 parent 0bbc828 commit 7dbb377
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@ end
local function updateCategories()
-- Wipe custom categories since we can't retrieve deleted set from itemRack (Except maybe store duplicate of sets and check last version of it)
for category, _ in pairs(CustomCategories) do
-- @TODO completely remove label as custom category from BetterBags
categories:WipeCategory(L:G(category))
printChat("Wiped category '" .. L:G(category) .. "'")
-- @TODO use temporary categories when the feature is added in BetterBags
categories:DeleteCategory(L:G(category))
printChat("Deleted category '" .. L:G(category) .. "'")
end

-- Reset list of in-use categories
CustomCategories = {}

-- Keep track of all used items and their associated sets
local usedItems = {}

Expand Down

0 comments on commit 7dbb377

Please sign in to comment.