Quantcast

In MainPanel.progress_bar:Update(): Removed subtraction of Player.excluded_recipes_unknown from pbCur, since the method of updating the progress bar has changed and that value disregarded any filtering. Also changed the percentage to have two places after the decimal.

James D. Callahan III [03-22-10 - 22:08]
In MainPanel.progress_bar:Update(): Removed subtraction of Player.excluded_recipes_unknown from pbCur, since the method of updating the progress bar has changed and that value disregarded any filtering. Also changed the percentage to have two places after the decimal.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index 3244f54..1cd4c79 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -2857,14 +2857,13 @@ function MainPanel.progress_bar:Update()
 	end

 	if not settings.includeexcluded and not settings.ignoreexclusionlist then
-		pbCur = pbCur - Player.excluded_recipes_unknown
 		pbMax = pbMax - Player.excluded_recipes_known
 	end
 	self:SetMinMaxValues(0, pbMax)
 	self:SetValue(pbCur)

 	if (floor(pbCur / pbMax * 100) < 101) and pbCur >= 0 and pbMax >= 0 then
-		self.text:SetFormattedText("%d / %d - %1.1f%%", pbCur, pbMax, pbCur / pbMax * 100)
+		self.text:SetFormattedText("%d / %d - %1.2f%%", pbCur, pbMax, pbCur / pbMax * 100)
 	else
 		self.text:SetFormattedText("0 / 0 - %s", L["NOT_YET_SCANNED"])
 	end