Browse Source

Optimizing startup when right panel local directory tree is not visible

(cherry picked from commit bf8e7e988367b0e7fe72cf52307bc603e910d469)

Source commit: f53b832f2f6cc7cd252f4412e30b93e381105e08
Martin Prikryl 1 year ago
parent
commit
7180af2496
1 changed files with 3 additions and 0 deletions
  1. 3 0
      source/packages/filemng/DriveView.pas

+ 3 - 0
source/packages/filemng/DriveView.pas

@@ -1552,6 +1552,9 @@ begin
   { if tree view is not visible anyway }
   GetAttr :=
     Visible and
+    Assigned(Parent) and
+    // Ad-hoc test for "other/right" panel, which is not hidden directly, but indirectly by hiding it container panel
+    ((Parent is TCustomForm) or Parent.Visible) and
     (GetDriveTypeToNode(ParentNode) <> DRIVE_REMOTE);
   GetNodeShellAttr(ParentNode, NodeData, GetAttr);