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

Correctly handle cancellation on last open sketch exit

Fixes #8488
This commit is contained in:
Martino Facchin 2019-02-04 10:03:13 +01:00
parent 2ac2e23bd7
commit 2b11e94afe

View File

@ -928,7 +928,9 @@ public class Base {
public boolean handleClose(Editor editor) {
if (editors.size() == 1) {
handleQuit();
if (!handleQuit()) {
return false;
}
// Everything called after handleQuit will only affect OSX
editor.setVisible(false);
editors.remove(editor);