Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
lighterowl committed Feb 2, 2025
1 parent ae0a86b commit 8318667
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ interface
lclintf,
{$endif windows}
{$ifdef darwin}
MacOSThemeDetect, CocoaAll, CocoaConfig,
MacOSThemeDetect, CocoaConfig,
{$endif}
Graphics, Dialogs, ComCtrls, Menus, ActnList, LCLVersion,
httpsend, StdCtrls, fpjson, jsonparser, ExtCtrls, rpc, syncobjs, variants, varlist, IpResolver,
Expand Down Expand Up @@ -995,9 +995,12 @@ procedure TMainForm.SetUpWindowsHotKey;
{$ifdef darwin}
procedure TMainForm.CocoaQuitApp(Data: PtrInt);
begin
MainForm.OnClose:=nil;
BeforeCloseApp;
MainForm.Close;
{ called by the OS when "Quit" is selected from the application's right-click
menu in the dock, or when the user is logging out / machine is shutting
down - in which case EndSession is called too so we end up calling it twice
which isn't really a problem. }
ApplicationPropertiesEndSession(self);
Application.Terminate;
end;
{$endif darwin}

Expand Down

0 comments on commit 8318667

Please sign in to comment.