mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 12:39:29 +02:00
* Prioritize file
This commit is contained in:
parent
98dd30e80a
commit
403d51105b
@ -204,19 +204,19 @@ Var
|
||||
aFile: TLazProjectFile;
|
||||
|
||||
begin
|
||||
Result:=aProject.CustomData.Values[PJSProjectHTMLFile{%H-}];
|
||||
If Result='' then
|
||||
Result:='';
|
||||
I:=aProject.FileCount-1;
|
||||
While (Result='') and (I>=0) do
|
||||
begin
|
||||
I:=aProject.FileCount-1;
|
||||
While (Result='') and (I>=0) do
|
||||
begin
|
||||
aFile:=aProject.Files[I];
|
||||
if aFile.IsPartOfProject
|
||||
and (aFile.CustomData[PJSIsProjectHTMLFile]='1') then
|
||||
Result:=aFile.GetFullFilename;
|
||||
Dec(I);
|
||||
end;
|
||||
end;
|
||||
aFile:=aProject.Files[I];
|
||||
if aFile.IsPartOfProject
|
||||
and (aFile.CustomData[PJSIsProjectHTMLFile]='1') then
|
||||
Result:=aFile.GetFullFilename;
|
||||
Dec(I);
|
||||
end;
|
||||
if Result='' then
|
||||
// Fallback
|
||||
Result:=aProject.CustomData.Values[PJSProjectHTMLFile{%H-}];
|
||||
end;
|
||||
|
||||
function TPJSController.GetHTMLFilename(aProject: TLazProject; UseTestDir: boolean): string;
|
||||
|
Loading…
Reference in New Issue
Block a user