Browse Source

Reusing IsIndeterminateOperation

Source commit: e8cc8fb58c1b1803580e9030ec55852748ffc62d
Martin Prikryl 6 years ago
parent
commit
8b7052b53a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/forms/CustomScpExplorer.cpp

+ 1 - 1
source/forms/CustomScpExplorer.cpp

@@ -852,7 +852,7 @@ void __fastcall TCustomScpExplorerForm::SetTaskbarListProgressState(TBPFLAG Flag
 //---------------------------------------------------------------------------
 void __fastcall TCustomScpExplorerForm::SetTaskbarListProgressValue(TFileOperationProgressType * ProgressData)
 {
-  if (ProgressData->Operation != foCalculateSize)
+  if (!TFileOperationProgressType::IsIndeterminateOperation(ProgressData->Operation))
   {
     int OverallProgress;
     // FProgressForm is null when this is called from SetQueueProgress