Ver Fonte

Bug fix: After directory comparison before synchronization finishes, task bar button still shows a progress bar (caused by a62f0274)

Source commit: 1d1026970136204873f0c3188fb502162837edc4
Martin Prikryl há 6 anos atrás
pai
commit
c35c15b43c
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      source/forms/CustomScpExplorer.cpp

+ 3 - 0
source/forms/CustomScpExplorer.cpp

@@ -1414,6 +1414,7 @@ void __fastcall TCustomScpExplorerForm::CreateProgressForm(TSynchronizeProgress
   if (FTaskbarList != NULL)
   {
     // Actually, do not know what hides the progress once the operation finishes
+    // (it is possibly the SetQueueProgress - and we should not rely on that)
     SetTaskbarListProgressState(TBPF_NORMAL);
   }
 }
@@ -5449,6 +5450,7 @@ void __fastcall TCustomScpExplorerForm::Synchronize(const UnicodeString LocalDir
       &CopyParam, Params | TTerminal::spNoConfirmation, TerminalSynchronizeDirectory,
       Options);
 
+    SetTaskbarListProgressState(TBPF_NOPROGRESS);
     SAFE_DESTROY(FSynchronizeProgressForm);
 
     AnyOperation = (AChecklist->CheckedCount > 0);
@@ -5851,6 +5853,7 @@ int __fastcall TCustomScpExplorerForm::DoFullSynchronizeDirectories(
       __finally
       {
         FAutoOperation = false;
+        SetTaskbarListProgressState(TBPF_NOPROGRESS);
         SAFE_DESTROY(FSynchronizeProgressForm);
       }