瀏覽代碼

* 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 年之前
父節點
當前提交
212da45205
共有 1 個文件被更改,包括 3 次插入1 次删除
  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);