Ver código fonte

Not showing 0% percent hint on the Progress dialog while calculating a transfer size

Source commit: 04313d6907617e148d64c6398b42b7bf30c4d8cb
Martin Prikryl 9 anos atrás
pai
commit
4740f7ad47
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      source/forms/Progress.cpp

+ 1 - 1
source/forms/Progress.cpp

@@ -263,7 +263,7 @@ void __fastcall TProgressForm::UpdateControls()
   }
   int OverallProgress = FData.OverallProgress();
   FOperationProgress->Position = OverallProgress;
-  FOperationProgress->Hint = FORMAT(L"%d%%", (OverallProgress));
+  FOperationProgress->Hint = IsIndeterminateOperation(FData.Operation) ? UnicodeString() : FORMAT(L"%d%%", (OverallProgress));
   Caption = FormatFormCaption(this, ProgressStr(&FData));
 
   if (TransferOperation)