Quantcast

Removed the "Reset Filters" button from the config options - there is already such a button in the expanded section of the main panel.

James D. Callahan III [07-07-10 - 08:08]
Removed the "Reset Filters" button from the config options - there is already such a button in the expanded section of the main panel.
Filename
Config.lua
Frame.lua
Locales/devel-enUS.lua
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."