optional from layout show category count

This commit is contained in:
Vati
2026-02-28 04:26:36 +04:00
parent 3d22490e15
commit a89ee82a37
5 changed files with 89 additions and 6 deletions
+4 -2
View File
@@ -1075,9 +1075,11 @@ function BagFrame:DisplayItemsByCategory(bagData, isOtherChar, charName)
displayName = catDef.name
end
-- Set item count
-- Set item count (gated by showCategoryCount setting)
if header.countText then
if numItems > 0 then
local showCount = addon.Modules.DB:GetSetting("showCategoryCount")
if showCount == nil then showCount = true end
if showCount and numItems > 0 then
header.countText:SetText("(" .. numItems .. ")")
header.countText:Show()
else