mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 16:40:48 +02:00
IDE: fpdoceditor: do not update on idle when a modal form is shown
git-svn-id: trunk@25696 -
This commit is contained in:
parent
94e1c3958b
commit
fd51b5dcdc
@ -415,12 +415,17 @@ begin
|
||||
end;
|
||||
|
||||
procedure TFPDocEditor.ApplicationIdle(Sender: TObject; var Done: Boolean);
|
||||
var
|
||||
ActiveForm: TCustomForm;
|
||||
begin
|
||||
if fUpdateLock>0 then
|
||||
if (fUpdateLock>0) then
|
||||
begin
|
||||
DebugLn(['WARNING: TFPDocEditor.ApplicationIdle fUpdateLock>0']);
|
||||
exit;
|
||||
end;
|
||||
if not IsVisible then exit;
|
||||
ActiveForm:=Screen.ActiveCustomForm;
|
||||
if (ActiveForm<>nil) and (fsModal in ActiveForm.FormState) then exit;
|
||||
Done:=false;
|
||||
if fpdefCodeCacheNeedsUpdate in FFlags then
|
||||
UpdateCodeCache
|
||||
|
Loading…
Reference in New Issue
Block a user