mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
kill editor window on stop when running externally
This commit is contained in:
@@ -1310,6 +1310,10 @@ public class Editor extends JFrame
|
||||
public void handleStop() { // called by menu or buttons
|
||||
if (presenting) {
|
||||
doClose();
|
||||
} else if (runtime.window != null) {
|
||||
// When run externally, kill the applet window,
|
||||
// otherwise things may not stop properly with libraries.
|
||||
doClose();
|
||||
} else {
|
||||
doStop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user