mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 08:50:16 +02:00
IDE: refactor TProject.LoadBuildModes more.
git-svn-id: trunk@45629 -
This commit is contained in:
parent
345f2fcb2e
commit
b0076d4eca
@ -2719,15 +2719,16 @@ end;
|
||||
|
||||
procedure TProject.LoadBuildModes(const Path: string; LoadData: boolean);
|
||||
begin
|
||||
if FReadFlags = [prfLoadParts] then exit; // prfLoadParts, no prfLoadPartBuildModes
|
||||
if prfLoadParts in FReadFlags then begin
|
||||
if FReadFlags <> [prfLoadParts] then begin // prfLoadParts, no prfLoadPartBuildModes
|
||||
if prfLoadParts in FReadFlags then begin
|
||||
if LoadData then
|
||||
ClearBuildModes;
|
||||
end;
|
||||
if LoadData then
|
||||
ClearBuildModes;
|
||||
BuildModes.LoadProjFromXMLConfig(FXMLConfig, Path)
|
||||
else
|
||||
BuildModes.LoadSessionFromXMLConfig(FXMLConfig, Path, prfLoadParts in FReadFlags);
|
||||
end;
|
||||
if LoadData then
|
||||
BuildModes.LoadProjFromXMLConfig(FXMLConfig, Path)
|
||||
else
|
||||
BuildModes.LoadSessionFromXMLConfig(FXMLConfig, Path, prfLoadParts in FReadFlags);
|
||||
end;
|
||||
|
||||
procedure TProject.LoadFlags(const Path: string);
|
||||
|
Loading…
Reference in New Issue
Block a user