Skip to content

Commit 778866a

Browse files
authored
Merge pull request #8349 from facchinm/fix_regression_save_on_close
Remove last editor window after saving its properties
2 parents 4b6b8f0 + 2efd090 commit 778866a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/processing/app/Base.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -932,9 +932,10 @@ public boolean handleClose(Editor editor) {
932932
}
933933

934934
if (editors.size() == 1) {
935+
handleQuit();
936+
// Everything called after handleQuit will only affect OSX
935937
editor.setVisible(false);
936938
editors.remove(editor);
937-
handleQuit();
938939
} else {
939940
// More than one editor window open,
940941
// proceed with closing the current window.

0 commit comments

Comments
 (0)