mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-13 10:29:35 +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) {
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user