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