mirror of https://gitlab.com/basile.b/dexed.git
improved performance on update
This commit is contained in:
parent
517f597505
commit
18ca120a8f
|
|
@ -177,7 +177,7 @@ begin
|
||||||
end;
|
end;
|
||||||
{$ENDREGION}
|
{$ENDREGION}
|
||||||
|
|
||||||
{$REGION Insêctor things -------------------------------------------------------}
|
{$REGION Inspector things -------------------------------------------------------}
|
||||||
procedure TCEProjectInspectWidget.TreeKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
|
procedure TCEProjectInspectWidget.TreeKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
|
||||||
begin
|
begin
|
||||||
if Key = VK_RETURN then
|
if Key = VK_RETURN then
|
||||||
|
|
@ -333,6 +333,7 @@ begin
|
||||||
fInclNode.DeleteChildren;
|
fInclNode.DeleteChildren;
|
||||||
fXtraNode.DeleteChildren;
|
fXtraNode.DeleteChildren;
|
||||||
if fProject = nil then exit;
|
if fProject = nil then exit;
|
||||||
|
Tree.BeginUpdate;
|
||||||
// display main sources
|
// display main sources
|
||||||
for src in fProject.Sources do
|
for src in fProject.Sources do
|
||||||
begin
|
begin
|
||||||
|
|
@ -390,6 +391,7 @@ begin
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
fXtraNode.Collapse(false);
|
fXtraNode.Collapse(false);
|
||||||
|
Tree.EndUpdate;
|
||||||
end;
|
end;
|
||||||
{$ENDREGION --------------------------------------------------------------------}
|
{$ENDREGION --------------------------------------------------------------------}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue