Browse Source

* don't send Update messages during loading of files, makes the IDE startup much faster when a lot of files are loaded

git-svn-id: trunk@13541 -
florian 16 năm trước cách đây
mục cha
commit
212da45205
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      ide/fpviews.pas

+ 3 - 1
ide/fpviews.pas

@@ -3894,7 +3894,9 @@ begin
        end;
     W^.HelpCtx:=hcSourceWindow;
     Desktop^.Insert(W);
+    { this makes loading a lot slower and is not needed as far as I can see (FK)
     Message(Application,evBroadcast,cmUpdate,nil);
+    }
   end;
   PopStatus;
   IOpenEditorWindow:=W;
@@ -3986,7 +3988,7 @@ begin
  FindFirst(filename,anyfile,Srec);
  while (DosError=0) do
    begin
-     ITryToOpenFile(Bounds,dir+srec.name,CurX,CurY,tryexts,true,false);    
+     ITryToOpenFile(Bounds,dir+srec.name,CurX,CurY,tryexts,true,false);
      FindNext(srec);
    end;
   FindClose(srec);