Merge branch 'CallWakeMainThreadOnQuit' into 'main'

Cocoa:  Need to call WakeMainThread from nextEventMatching when quitting.

See merge request freepascal.org/lazarus/lazarus!383
This commit is contained in:
rich2014 2024-12-20 14:26:32 +00:00
commit d9c3191562

View File

@ -764,6 +764,8 @@ begin
Application.MainForm.Close
else
Application.Terminate;
if Assigned(WakeMainThread) then
WakeMainThread(nil);
end;
// Let caller know if the shutdown was cancelled
if (not Application.Terminated) and (replyEvent.descriptorType <> typeNull) then