mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-21 17:28:14 +02:00
Opkman: Speed up the load of the package tree.
git-svn-id: trunk@62680 -
This commit is contained in:
parent
42beb70c91
commit
ab0b56c0f8
@ -437,6 +437,7 @@ begin
|
||||
case AErrTyp of
|
||||
etNone:
|
||||
begin
|
||||
if (not Options.LoadJsonLocally) then
|
||||
SetupMessage(rsMainFrm_rsMessageParsingJSON);
|
||||
if (SerializablePackages.Count = 0) then
|
||||
begin
|
||||
|
@ -331,6 +331,8 @@ begin
|
||||
FVST.NodeDataSize := SizeOf(TData);
|
||||
UniqueID := 0;
|
||||
//add repository(DataType = 0)
|
||||
FVST.BeginUpdate;
|
||||
try
|
||||
RootNode := FVST.AddChild(nil);
|
||||
RootData := FVST.GetNodeData(RootNode);
|
||||
RootData^.Repository := Options.RemoteRepository[Options.ActiveRepositoryIndex];
|
||||
@ -489,6 +491,9 @@ begin
|
||||
FVST.SortTree(0, laz.VirtualTrees.sdAscending);
|
||||
ExpandEx;
|
||||
CollapseEx;
|
||||
finally
|
||||
FVST.EndUpdate;
|
||||
end;
|
||||
RootNode := VST.GetFirst;
|
||||
if RootNode <> nil then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user