1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-20 14:54:31 +01:00

Merge pull request #8349 from facchinm/fix_regression_save_on_close

Remove last editor window after saving its properties
This commit is contained in:
Martino Facchin 2019-01-02 14:17:36 +01:00 committed by GitHub
commit 778866ac4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -932,9 +932,10 @@ public class Base {
}
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.