mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-14 11:29:26 +01:00
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
This commit is contained in:
parent
4b6b8f0c52
commit
2efd090e81
@ -932,9 +932,10 @@ public class Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (editors.size() == 1) {
|
if (editors.size() == 1) {
|
||||||
|
handleQuit();
|
||||||
|
// Everything called after handleQuit will only affect OSX
|
||||||
editor.setVisible(false);
|
editor.setVisible(false);
|
||||||
editors.remove(editor);
|
editors.remove(editor);
|
||||||
handleQuit();
|
|
||||||
} else {
|
} else {
|
||||||
// More than one editor window open,
|
// More than one editor window open,
|
||||||
// proceed with closing the current window.
|
// proceed with closing the current window.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user