1
0
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:
Cristian Maglie 2016-01-12 23:31:45 +01:00
parent 2c089044c8
commit c98c18089d

View File

@ -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