Explorar o código

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

Source commit: 04313d6907617e148d64c6398b42b7bf30c4d8cb
Martin Prikryl %!s(int64=9) %!d(string=hai) anos
pai
achega
4740f7ad47
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)