Skip to content

Commit

Permalink
Merge pull request arduino#8349 from facchinm/fix_regression_save_on_…
Browse files Browse the repository at this point in the history
…close

Remove last editor window after saving its properties
  • Loading branch information
facchinm authored Jan 2, 2019
2 parents 4b6b8f0 + 2efd090 commit 778866a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/processing/app/Base.java
Original file line number Diff line number Diff line change
Expand Up @@ -932,9 +932,10 @@ public boolean handleClose(Editor editor) {
}

if (editors.size() == 1) {
handleQuit();
// Everything called after handleQuit will only affect OSX
editor.setVisible(false);
editors.remove(editor);
handleQuit();
} else {
// More than one editor window open,
// proceed with closing the current window.
Expand Down

0 comments on commit 778866a

Please sign in to comment.