1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-03-15 12:29:26 +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(); editor.internalCloseRunner();
if (editors.size() == 1) { if (editors.size() == 1) {
storeSketches();
// This will store the sketch count as zero // This will store the sketch count as zero
editors.remove(editor); editors.remove(editor);
try { try {
@ -964,7 +966,6 @@ public class Base {
} catch (Exception e) { } catch (Exception e) {
//ignore //ignore
} }
storeSketches();
rebuildRecentSketchesMenuItems(); rebuildRecentSketchesMenuItems();
// Save out the current prefs state // Save out the current prefs state