Skip to content

Commit 2efd090

Browse files
committed
Remove last editor window after saving its properties
Only OSX needs the "app" to stay open after handleQuit and to remove the editor windows when called. Fixes #8337
1 parent 4b6b8f0 commit 2efd090

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)