mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 21:38:00 +02:00
LCL/ShellTreeView: Speedup when opening a node with many subfolders a second time.
git-svn-id: trunk@65455 -
This commit is contained in:
parent
ee25f78baf
commit
f22bca8150
@ -617,9 +617,14 @@ begin
|
||||
if not Result then exit;
|
||||
OldAutoExpand:=AutoExpand;
|
||||
AutoExpand:=False;
|
||||
Node.DeleteChildren;
|
||||
Result := PopulateTreeNodeWithFiles(Node, GetPathFromNode(Node));
|
||||
AutoExpand:=OldAutoExpand;
|
||||
BeginUpdate;
|
||||
try
|
||||
Node.DeleteChildren;
|
||||
Result := PopulateTreeNodeWithFiles(Node, GetPathFromNode(Node));
|
||||
AutoExpand:=OldAutoExpand;
|
||||
finally
|
||||
EndUpdate;
|
||||
end;
|
||||
end;
|
||||
|
||||
constructor TCustomShellTreeView.Create(AOwner: TComponent);
|
||||
|
Loading…
Reference in New Issue
Block a user