mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-13 10:29:35 +01:00
Save window position when closing app from "x" button or Alt+F4
Fix #4404 Fix #4218
This commit is contained in:
parent
2c089044c8
commit
c98c18089d
@ -957,6 +957,8 @@ public class Base {
|
||||
editor.internalCloseRunner();
|
||||
|
||||
if (editors.size() == 1) {
|
||||
storeSketches();
|
||||
|
||||
// This will store the sketch count as zero
|
||||
editors.remove(editor);
|
||||
try {
|
||||
@ -964,7 +966,6 @@ public class Base {
|
||||
} catch (Exception e) {
|
||||
//ignore
|
||||
}
|
||||
storeSketches();
|
||||
rebuildRecentSketchesMenuItems();
|
||||
|
||||
// Save out the current prefs state
|
||||
|
Loading…
x
Reference in New Issue
Block a user