1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-01-03 10:15:38 +02:00

Merge pull request #344 from User4martin/fpc-work-2a

Thanks!
This commit is contained in:
Salvador Díaz Fau 2021-02-17 22:55:31 +01:00 committed by GitHub
commit c6884ecdf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View File

@ -72,6 +72,11 @@
<Debugging>
<DebugInfoType Value="dsDwarf3"/>
</Debugging>
<Options>
<Win32>
<GraphicApplication Value="True"/>
</Win32>
</Options>
</Linking>
</CompilerOptions>
</CONFIG>

View File

@ -69,7 +69,8 @@ uses
begin
RequireDerivedFormResource:=True;
Application.Scaled:=True;
Application.Title := 'External Pump Browser';
Application.Scaled := True;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;

View File

@ -276,8 +276,10 @@ end;
initialization
if GlobalCEFApp = nil then begin
CreateGlobalCEFApp;
if not GlobalCEFApp.StartMainProcess then
if not GlobalCEFApp.StartMainProcess then begin
DestroyGlobalCEFApp;
halt(0); // exit the subprocess
end;
end;
finalization