Quantcast

Trying the progress bar again

Ackis [10-21-08 - 16:18]
Trying the progress bar again
Filename
ARLFrame.lua
diff --git a/ARLFrame.lua b/ARLFrame.lua
index 9fb4b22..d39f8be 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -107,17 +107,6 @@ StaticPopupDialogs["ARL_ALLFILTERED"] = {
 	hideOnEscape = 1
 };

--- Closes the frame
-function addon:CloseWindow()
-	addon.Frame:Hide()
-
-	addon.ResetOkayARL = true
-
-	if (addon.ResetOkayBlizz and addon.ResetOkayARL) then
-		addon:ResetVariables()
-	end
-end
-
 -- Under various conditions, I'm going to have to redisplay my recipe list
 -- This could happen because a filter changes, a new profession is chosen, or
 -- a new search occurred. Use this function to do all the dirty work
@@ -138,7 +127,7 @@ function ReDisplay( )
 		pbMax = playerData.totalRecipes
 	-- We're removing filtered recipes from the final count
 	else
-		pbMax = playerData.totalRecipes - playerData.filteredRecipes + playerData.foundRecipes
+		pbMax = playerData.totalRecipes - (playerData.filteredRecipes - playerData.foundRecipes)
 	end
 	ARL_ProgressBar:SetMinMaxValues( pbMin, pbMax)
 	ARL_ProgressBar:SetValue( pbCur )
@@ -154,6 +143,7 @@ end

 -- Create the scan button and add it to Skillet if applicable
 function addon:CreateScanButton()
+
 	-- Create the scan button
 	if (not addon.ScanButton) then
 		addon.ScanButton = CreateFrame("Button","addon.ScanButton",UIParent,"UIPanelButtonTemplate")
@@ -183,6 +173,7 @@ function addon:CreateScanButton()
 	end )
 	addon.ScanButton:SetText(L["Scan Skills"])
 	addon.ScanButton:Enable()
+
 end

 -- Adds a button to the trade skill/skillet skill window allowing you to scan
@@ -2251,8 +2242,6 @@ function addon:CreateFrame(
 	local pbMax = 100
 	local pbCur = 50

-	addon.ResetOkayARL = false
-
 	sortedRecipeIndex = sortedRI
 	recipeDB = rDB
 	allSpecTable = asTable