fix: Tools category items

This commit is contained in:
Vati
2026-02-28 02:53:47 +04:00
parent 049ebc04a2
commit 291b18d910
+8 -1
View File
@@ -293,7 +293,7 @@ local DEFAULT_CATEGORIES = {
{ type = "isProfessionTool", value = true }
},
matchMode = "all",
priority = 60,
priority = 72,
enabled = true,
isBuiltIn = true,
group = GROUP_OTHER,
@@ -543,6 +543,13 @@ function CategoryManager:MigrateCategories()
end
end
-- Migrate Tools priority: must be above Weapon (70) to catch fishing poles, skinning knives, etc.
local toolsCat = cats.definitions["Tools"]
if toolsCat and toolsCat.isBuiltIn and toolsCat.priority and toolsCat.priority < 72 then
toolsCat.priority = 72
addon:Debug("CategoryManager: Updated Tools priority to 72 (above Weapon/Armor)")
end
-- Ensure new categories in the order list are in correct positions
-- Check if order needs rebuilding to include new group-based ordering
local hasTools, hasEmpty = false, false