mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 15:09:26 +02:00
IDE: Update DefineTemplates of all packages after switching a project.
git-svn-id: trunk@64794 -
This commit is contained in:
parent
62a7390394
commit
4e2c94c4c9
@ -200,6 +200,7 @@ type
|
||||
procedure DoOpenRecentFile(AFilename: string);
|
||||
|
||||
procedure UpdateHighlighters(Immediately: boolean = false); override;
|
||||
procedure UpdateDefineTemplates;
|
||||
|
||||
procedure FindInFilesPerDialog(AProject: TProject); override;
|
||||
procedure FindInFiles(AProject: TProject; const FindText: string); override;
|
||||
@ -1754,6 +1755,11 @@ begin
|
||||
Include(FIdleIdeActions, iiaUpdateHighlighters);
|
||||
end;
|
||||
|
||||
procedure TMainIDEBase.UpdateDefineTemplates;
|
||||
begin
|
||||
Include(FIdleIdeActions, iiaUpdateDefineTemplates);
|
||||
end;
|
||||
|
||||
procedure TMainIDEBase.FindInFilesPerDialog(AProject: TProject);
|
||||
begin
|
||||
FindInFilesDialog.FindInFilesPerDialog(AProject);
|
||||
|
@ -7425,10 +7425,8 @@ begin
|
||||
|
||||
// load required packages
|
||||
PkgBoss.OpenProjectDependencies(Project1, MainIDE.IDEStarted);
|
||||
|
||||
//DebugLn('CompleteLoadingProjectInfo ',Project1.IDAsString);
|
||||
Project1.DefineTemplates.Active:=true;
|
||||
|
||||
MainIDE.UpdateDefineTemplates;
|
||||
Result:=mrOk;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user