Skip to content

Commit

Permalink
Convert GlobalCEFApp.LogFile to an absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
salvadordf committed Nov 14, 2024
1 parent 00bf20f commit 6256c2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion source/uCEFApplicationCore.pas
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ TCefApplicationCore = class(TInterfacedObject, IApplicationCoreEvents)
procedure SetOsmodalLoop(aValue : boolean);
{$ENDIF}
procedure SetKioskPrinting(aValue : boolean);
procedure SetLogFile(const aValue : ustring);

function GetChromeVersion : ustring;
function GetLibCefVersion : ustring;
Expand Down Expand Up @@ -650,7 +651,7 @@ TCefApplicationCore = class(TInterfacedObject, IApplicationCoreEvents)
/// [app name] is the name of the main app executable. Also configurable using
/// the "log-file" command-line switch.
/// </summary>
property LogFile : ustring read FLogFile write FLogFile;
property LogFile : ustring read FLogFile write SetLogFile;
/// <summary>
/// The log severity. Only messages of this severity level or higher will be
/// logged. When set to DISABLE no messages will be written to the log file,
Expand Down Expand Up @@ -2741,6 +2742,11 @@ procedure TCefApplicationCore.SetKioskPrinting(aValue : boolean);
end;
end;

procedure TCefApplicationCore.SetLogFile(const aValue : ustring);
begin
FLogFile := CustomAbsolutePath(aValue, False);
end;

procedure TCefApplicationCore.UpdateDeviceScaleFactor;
begin
if (FForcedDeviceScaleFactor <> 0) then
Expand Down
2 changes: 1 addition & 1 deletion update_CEF4Delphi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"UpdateLazPackages" : [
{
"ForceNotify" : true,
"InternalVersion" : 675,
"InternalVersion" : 676,
"Name" : "cef4delphi_lazarus.lpk",
"Version" : "130.1.16"
}
Expand Down

0 comments on commit 6256c2c

Please sign in to comment.