Browse Source

Comment on possible optimization

Source commit: c53f9e64e4b35fe871dbeaf82eaedeeba361c031
Martin Prikryl 5 years ago
parent
commit
b5d0033db9
1 changed files with 1 additions and 0 deletions
  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();