fix: Tools category items
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user