Explorar el Código

Comment on possible optimization

Source commit: c53f9e64e4b35fe871dbeaf82eaedeeba361c031
Martin Prikryl hace 5 años
padre
commit
b5d0033db9
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      source/forms/ScpCommander.cpp

+ 1 - 0
source/forms/ScpCommander.cpp

@@ -501,6 +501,7 @@ void __fastcall TScpCommanderForm::ReloadLocalDirectory(const UnicodeString Dire
     LocalDirView->ReloadDirectory();
     LocalDriveView->ValidateDirectory(LocalDriveView->Selected);
   }
+  // we may postpone reload, when hidden, as an optimization
   if (Directory.IsEmpty() || SamePaths(Directory, OtherLocalDirView->Path))
   {
     OtherLocalDirView->ReloadDirectory();