1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-17 23:05:03 -05:00

* see if async works (even though it breaks the logic)

This commit is contained in:
Reinhard Pointner 2015-05-05 14:45:53 +00:00
parent a259d812dc
commit 75d58e4fe8

View File

@ -42,8 +42,8 @@ public class MacAppUtilities {
public static List<File> NSOpenPanel_openPanel_runModal(String title, boolean multipleMode, boolean canChooseDirectories, boolean canChooseFiles, String[] allowedFileTypes) { public static List<File> NSOpenPanel_openPanel_runModal(String title, boolean multipleMode, boolean canChooseDirectories, boolean canChooseFiles, String[] allowedFileTypes) {
List<File> result = new ArrayList<File>(); List<File> result = new ArrayList<File>();
System.out.println("before dispatch_sync"); System.out.println("before dispatch_async");
dispatch_sync(new Runnable() { dispatch_async(new Runnable() {
@Override @Override
public void run() { public void run() {
@ -79,7 +79,7 @@ public class MacAppUtilities {
} }
}); });
System.out.println("after dispatch_sync"); System.out.println("after dispatch_async");
return result; return result;
} }