mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 17:19:18 +02:00
TodoList: avoid flickering while updating TODO list by adding BeginUpdate/EndUpdate. Patch by Vladimir Zhirov, bug #17125.
git-svn-id: trunk@27021 -
This commit is contained in:
parent
6688cc9ce2
commit
9fe6485839
@ -602,6 +602,7 @@ begin
|
|||||||
|
|
||||||
Screen.Cursor:=crHourGlass;
|
Screen.Cursor:=crHourGlass;
|
||||||
Owners:=nil;
|
Owners:=nil;
|
||||||
|
lvTodo.BeginUpdate;
|
||||||
try
|
try
|
||||||
fBuild:=True;
|
fBuild:=True;
|
||||||
CodeToolBoss.ActivateWriteLock;
|
CodeToolBoss.ActivateWriteLock;
|
||||||
@ -678,6 +679,7 @@ begin
|
|||||||
Node:=fScannedFiles.FindSuccessor(Node);
|
Node:=fScannedFiles.FindSuccessor(Node);
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
|
lvTodo.EndUpdate;
|
||||||
CodeToolBoss.DeactivateWriteLock;
|
CodeToolBoss.DeactivateWriteLock;
|
||||||
Owners.Free;
|
Owners.Free;
|
||||||
Screen.Cursor:=crDefault;
|
Screen.Cursor:=crDefault;
|
||||||
|
Loading…
Reference in New Issue
Block a user