In addon.ResetTitle(): Fix the counting logic to not include disabled filters in the total.
torhal [09-12-09 - 08:10]
In addon.ResetTitle(): Fix the counting logic to not include disabled filters in the total.
diff --git a/ARLFrame.lua b/ARLFrame.lua
index 143dd90..6d62386 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -1782,10 +1782,12 @@ function addon.resetTitle()
local total, active = 0, 0
for filter, info in pairs(FilterValueMap) do
- if info.svroot and info.svroot[filter] == true then
- active = active + 1
+ if info.svroot then
+ if info.svroot[filter] == true then
+ active = active + 1
+ end
+ total = total + 1
end
- total = total + 1
end
myTitle = "ARL (v." .. addonversion .. ") - " .. currentProfession ..
" (" .. active .. "/" .. total .. " " .. L["Filters"] .. ")"