浏览代码

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

Source commit: 04313d6907617e148d64c6398b42b7bf30c4d8cb
Martin Prikryl 9 年之前
父节点
当前提交
4740f7ad47
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)