From 3f4d5fa68ce72f359aaf25be3f0c644085c517ca Mon Sep 17 00:00:00 2001 From: Emmalyn Renato Date: Fri, 14 Sep 2018 07:45:28 -0700 Subject: [PATCH] Fix display of progress text in Advanced Install when total file size is unknown. --- .../Widgets/Logic/Installation/DownloadPackageLogic.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs index b57f68bc3e..7c8adf3b9d 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs @@ -89,6 +89,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic getStatusText = () => "Downloading from {2} {0:0.00} {1} (unknown size)".F(dataReceived, dataSuffix, downloadHost ?? "unknown host"); + progressBar.Indeterminate = true; } else { @@ -100,9 +101,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic getStatusText = () => "Downloading from {4} {1:0.00}/{2:0.00} {3} ({0}%)".F(i.ProgressPercentage, dataReceived, dataTotal, dataSuffix, downloadHost ?? "unknown host"); + progressBar.Indeterminate = false; } - progressBar.Indeterminate = false; progressBar.Percentage = i.ProgressPercentage; };