mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-18 16:08:19 +02:00
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:
commit
d9c3191562
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user