Skip to content

Commit 0b2efcc

Browse files
committed
Use PApplet.exit() instead of System.exit(0) for present mode stop button
1 parent fa0a8c2 commit 0b2efcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/processing/core/PApplet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10916,7 +10916,7 @@ static public void runSketch(final String args[], final PApplet constructedApple
1091610916
label.addMouseListener(new MouseAdapter() {
1091710917
@Override
1091810918
public void mousePressed(java.awt.event.MouseEvent e) {
10919-
System.exit(0);
10919+
applet.exit();
1092010920
}
1092110921
});
1092210922
frame.add(label);

0 commit comments

Comments
 (0)