Skip to content

Commit 2b11e94

Browse files
committed
Correctly handle cancellation on last open sketch exit
Fixes #8488
1 parent 2ac2e23 commit 2b11e94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: app/src/processing/app/Base.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,9 @@ public void actionPerformed(ActionEvent actionEvent) {
928928
public boolean handleClose(Editor editor) {
929929

930930
if (editors.size() == 1) {
931-
handleQuit();
931+
if (!handleQuit()) {
932+
return false;
933+
}
932934
// Everything called after handleQuit will only affect OSX
933935
editor.setVisible(false);
934936
editors.remove(editor);

0 commit comments

Comments
 (0)