fix: category counter disable when only 1 item in category

This commit is contained in:
Vati
2026-02-28 04:30:18 +04:00
parent a89ee82a37
commit 597a66ec9c
4 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -1079,7 +1079,7 @@ function BagFrame:DisplayItemsByCategory(bagData, isOtherChar, charName)
if header.countText then
local showCount = addon.Modules.DB:GetSetting("showCategoryCount")
if showCount == nil then showCount = true end
if showCount and numItems > 0 then
if showCount and numItems > 1 then
header.countText:SetText("(" .. numItems .. ")")
header.countText:Show()
else