mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 16:58:51 -05:00
* cleanup
This commit is contained in:
parent
3af7e217a0
commit
9c05de570b
@ -52,10 +52,7 @@ public class MacAppUtilities {
|
|||||||
final SecondaryLoop secondaryLoop = eventQueue.createSecondaryLoop();
|
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)
|
// 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() {
|
dispatch_async(() -> {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
Pointer pool = createAutoreleasePool();
|
Pointer pool = createAutoreleasePool();
|
||||||
Proxy peer = objc().sendProxy("NSOpenPanel", "openPanel");
|
Proxy peer = objc().sendProxy("NSOpenPanel", "openPanel");
|
||||||
peer.send("retain");
|
peer.send("retain");
|
||||||
@ -85,7 +82,6 @@ public class MacAppUtilities {
|
|||||||
|
|
||||||
drainAutoreleasePool(pool);
|
drainAutoreleasePool(pool);
|
||||||
secondaryLoop.exit();
|
secondaryLoop.exit();
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Enter the loop to block the current event handler, but leave UI responsive
|
// Enter the loop to block the current event handler, but leave UI responsive
|
||||||
|
Loading…
Reference in New Issue
Block a user