mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-10 06:31:49 +00:00
Fix Mac implementation of --auto-close option
Invoke [NSApp stop:] on the main thread. When invoked from UpdateDialogCocoa::updateFinished() on the background thread it had no effect as [NSApp stop:] only stops the current run loop.
This commit is contained in:
parent
84288ddc6c
commit
1ebf62e1fa
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ void UpdateDialogCocoa::releaseAutoreleasePool(void* arg)
|
|||
|
||||
void UpdateDialogCocoa::quit()
|
||||
{
|
||||
[NSApp stop:nil];
|
||||
[NSApp performSelectorOnMainThread:@selector(stop:) withObject:d->delegate waitUntilDone:false];
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue