* cleanup
This commit is contained in:
parent
3af7e217a0
commit
9c05de570b
|
@ -52,10 +52,7 @@ public class MacAppUtilities {
|
|||
final SecondaryLoop secondaryLoop = eventQueue.createSecondaryLoop();
|
||||
|
||||
// WARNING: dispatch_sync seems to work on most Mac always causes a deadlock and freezes the application on others (in particular MBP with 2 graphics chips)
|
||||
dispatch_async(new Runnable() {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
dispatch_async(() -> {
|
||||
Pointer pool = createAutoreleasePool();
|
||||
Proxy peer = objc().sendProxy("NSOpenPanel", "openPanel");
|
||||
peer.send("retain");
|
||||
|
@ -85,7 +82,6 @@ public class MacAppUtilities {
|
|||
|
||||
drainAutoreleasePool(pool);
|
||||
secondaryLoop.exit();
|
||||
}
|
||||
});
|
||||
|
||||
// Enter the loop to block the current event handler, but leave UI responsive
|
||||
|
|
Loading…
Reference in New Issue