From d19a705d1987b9f25a1e6705d22bb2532d124970 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Wed, 7 Jul 2010 04:08:52 -0400 Subject: [PATCH] Removed the "Reset Filters" button from the config options - there is already such a button in the expanded section of the main panel. --- Config.lua | 9 --------- Frame.lua | 4 ++-- Locales/devel-enUS.lua | 1 - 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/Config.lua b/Config.lua index 9c1ff95..0cc7f51 100644 --- a/Config.lua +++ b/Config.lua @@ -113,15 +113,6 @@ local function fullOptions() return true end, }, - resetallfilters = { - order = 16, - type = "execute", - name = L["Reset All Filters"], - desc = L["RESET_DESC"], - func = function(info) - private.resetFilters() - end, - }, spacer1 = { order = 19, type = "description", diff --git a/Frame.lua b/Frame.lua index b413c9f..a196f8d 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2033,7 +2033,7 @@ do end end - function private.resetFilters() + function ResetFilters() local filterdb = addon.db.profile.filters -- Reset all filters to true. @@ -2057,7 +2057,7 @@ do ListFrame:Update(nil, false) end end - MainPanel.filter_reset:SetScript("OnClick", private.resetFilters) + MainPanel.filter_reset:SetScript("OnClick", ResetFilters) end -- do ------------------------------------------------------------------------------- diff --git a/Locales/devel-enUS.lua b/Locales/devel-enUS.lua index 738bf20..0f4403a 100644 --- a/Locales/devel-enUS.lua +++ b/Locales/devel-enUS.lua @@ -52,7 +52,6 @@ Alt-click to remove all waypoints from the mini-map and world map.]] L["Text Dump"] = true L["View Exclusion List"] = true L["Clear Exclusion List"] = true -L["Reset All Filters"] = true L["Scan Button Position"] = true L["SCANBUTTONPOSITION_DESC"] = "Allows you to customize where the scan button is placed on the tradeskill frame." L["VIEW_EXCLUSION_LIST_DESC"] = "Prints out a list of all recipes on the exclusion list." -- 1.7.9.5