From 570456222c6d0605101d1750970638d0f55a1a67 Mon Sep 17 00:00:00 2001 From: torhal Date: Sat, 12 Sep 2009 08:10:02 +0000 Subject: [PATCH] In addon.ResetTitle(): Fix the counting logic to not include disabled filters in the total. --- ARLFrame.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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"] .. ")" -- 1.7.9.5