mirror of
https://github.com/processing/processing4.git
synced 2026-02-16 03:45:40 +01:00
multiple sketches running at once again (issue #567)
This commit is contained in:
@@ -478,7 +478,8 @@ public class JavaEditor extends Editor {
|
||||
public void run() {
|
||||
prepareRun();
|
||||
try {
|
||||
jmode.handleRun(sketch, JavaEditor.this);
|
||||
runtime = jmode.handleRun(sketch, JavaEditor.this);
|
||||
// System.out.println("runtime now " + runtime);
|
||||
} catch (Exception e) {
|
||||
statusError(e);
|
||||
}
|
||||
@@ -494,7 +495,7 @@ public class JavaEditor extends Editor {
|
||||
public void run() {
|
||||
prepareRun();
|
||||
try {
|
||||
jmode.handlePresent(sketch, JavaEditor.this);
|
||||
runtime = jmode.handlePresent(sketch, JavaEditor.this);
|
||||
} catch (Exception e) {
|
||||
statusError(e);
|
||||
}
|
||||
@@ -510,7 +511,9 @@ public class JavaEditor extends Editor {
|
||||
//jmode.handleStop();
|
||||
if (runtime != null) {
|
||||
runtime.close(); // kills the window
|
||||
runtime = null; // will this help?
|
||||
runtime = null;
|
||||
// } else {
|
||||
// System.out.println("runtime is null");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
statusError(e);
|
||||
|
||||
Reference in New Issue
Block a user