mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 01:29:17 +01:00
SwingUtilities.invokeLater for opening multiple instances
This commit is contained in:
@@ -196,12 +196,16 @@ public class Base {
|
||||
if (platform.base == null) continue;
|
||||
|
||||
if (key.equals(receivedKey)) {
|
||||
String filename = br.readLine();
|
||||
if (filename != null) {
|
||||
platform.base.handleOpen(filename);
|
||||
} else {
|
||||
platform.base.handleNew();
|
||||
}
|
||||
final String filename = br.readLine();
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
if (filename != null) {
|
||||
platform.base.handleOpen(filename);
|
||||
} else {
|
||||
platform.base.handleNew();
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
} catch (IOException e) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user