Quantcast

Actually do the mini-map stuff when you hit the scan button.

ackis [02-17-09 - 20:31]
Actually do the mini-map stuff when you hit the scan button.
Filename
ARLFrame.lua
diff --git a/ARLFrame.lua b/ARLFrame.lua
index 0b5a772..82518b5 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -311,7 +311,6 @@ do
 	-- Input:
 	-- Output:

-	--/script AckisRecipeList:SetupMap()
 	function addon:SetupMap()

 		if (not TomTom) then
@@ -2012,16 +2011,19 @@ do
 				addon.Frame:Hide()
 			-- If we have a different profession open we do a scan
 			else
-				addon:AckisRecipeList_Command(false)
+				self:AckisRecipeList_Command(false)
+				self:SetupMap()
 				currentProfession = cprof
 			end
 		else
 			currentProfession = cprof
 			-- If we click the scan button with the shift key down, we do a text dump
 			if (IsShiftKeyDown()) then
-				addon:AckisRecipeList_Command(true)
+				self:AckisRecipeList_Command(true)
+				self:SetupMap()
 			else
-				addon:AckisRecipeList_Command(false)
+				self:AckisRecipeList_Command(false)
+				self:SetupMap()
 			end
 		end