Don't disable AddonClearer when selecting/deselecting

CrazyDutchGuy [06-28-14 - 14:49]
Don't disable AddonClearer when selecting/deselecting
Filename
AddonClearer.lua
diff --git a/AddonClearer.lua b/AddonClearer.lua
index 84c9a22..a61bed7 100644
--- a/AddonClearer.lua
+++ b/AddonClearer.lua
@@ -1,7 +1,7 @@
 AddonClearer = {}

 function AddonClearer:SetAddons(toDo)
-	table.sort(ZO_AddOnsList.data, function(a,b) return a.data.addOnName == "AddonClearer" end) -- In place sorting. oh dear
+	table.sort(ZO_AddOnsList.data, function(a,b) return a.data.addOnFileName == "AddonClearer" end) -- In place sorting. oh dear
 	local thisAddonIndex = ZO_AddOnsList.data[1].data.index

 	local notEmpty = false
@@ -36,9 +36,9 @@ function AddonClearer:SetAddons(toDo)
 			end
 		end
 	end
-	-- Reset the view
+	-- Reset the view
 	SCENE_MANAGER:RemoveFragment(ADDONS_FRAGMENT)
-	SCENE_MANAGER:AddFragment(ADDONS_FRAGMENT)
+	SCENE_MANAGER:AddFragment(ADDONS_FRAGMENT)
 end

 local firstControl = nil