mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 08:48:51 -05:00
SwingUI
This commit is contained in:
parent
c2fc4c2913
commit
e2d9b9dd81
@ -372,7 +372,7 @@ public final class SwingUI {
|
|||||||
// run spawn new EDT and block current EDT
|
// run spawn new EDT and block current EDT
|
||||||
SecondaryLoop secondaryLoop = Toolkit.getDefaultToolkit().getSystemEventQueue().createSecondaryLoop();
|
SecondaryLoop secondaryLoop = Toolkit.getDefaultToolkit().getSystemEventQueue().createSecondaryLoop();
|
||||||
|
|
||||||
SwingWorker<T, Void> worker = newSwingWorker(supplier, null, null, () -> secondaryLoop.exit());
|
SwingWorker<T, Void> worker = newSwingWorker(supplier, null, null, secondaryLoop::exit);
|
||||||
worker.execute();
|
worker.execute();
|
||||||
|
|
||||||
// wait for worker to finish without blocking the EDT
|
// wait for worker to finish without blocking the EDT
|
||||||
|
Loading…
Reference in New Issue
Block a user