Prechádzať zdrojové kódy

Optimizing startup when right panel local directory tree is not visible

Source commit: 3d24caee9295a375867a7a16b312df05fabe00aa
Martin Prikryl 1 rok pred
rodič
commit
bf8e7e9883
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      source/packages/filemng/DriveView.pas

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

@@ -1536,6 +1536,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);