mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 21:29:17 +01:00
fix illegal state when closing window
This commit is contained in:
@@ -1877,7 +1877,8 @@ public abstract class Editor extends JFrame implements RunnerListener {
|
||||
} else if (result == JOptionPane.NO_OPTION) {
|
||||
return true; // ok to continue
|
||||
|
||||
} else if (result == JOptionPane.CANCEL_OPTION) {
|
||||
} else if (result == JOptionPane.CANCEL_OPTION ||
|
||||
result == JOptionPane.CLOSED_OPTION) {
|
||||
return false;
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user