Fix display of progress text in Advanced Install when total file size is unknown.
This commit is contained in:
committed by
Paul Chote
parent
91adc61abd
commit
3f4d5fa68c
@@ -89,6 +89,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
getStatusText = () => "Downloading from {2} {0:0.00} {1} (unknown size)".F(dataReceived,
|
getStatusText = () => "Downloading from {2} {0:0.00} {1} (unknown size)".F(dataReceived,
|
||||||
dataSuffix,
|
dataSuffix,
|
||||||
downloadHost ?? "unknown host");
|
downloadHost ?? "unknown host");
|
||||||
|
progressBar.Indeterminate = true;
|
||||||
}
|
}
|
||||||
else
|
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,
|
getStatusText = () => "Downloading from {4} {1:0.00}/{2:0.00} {3} ({0}%)".F(i.ProgressPercentage,
|
||||||
dataReceived, dataTotal, dataSuffix,
|
dataReceived, dataTotal, dataSuffix,
|
||||||
downloadHost ?? "unknown host");
|
downloadHost ?? "unknown host");
|
||||||
|
progressBar.Indeterminate = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
progressBar.Indeterminate = false;
|
|
||||||
progressBar.Percentage = i.ProgressPercentage;
|
progressBar.Percentage = i.ProgressPercentage;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user