Skip to content

Commit c98c180

Browse files
committed
Save window position when closing app from "x" button or Alt+F4
Fix arduino#4404 Fix arduino#4218
1 parent 2c08904 commit c98c180

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/processing/app/Base.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -957,14 +957,15 @@ public boolean handleClose(Editor editor) {
957957
editor.internalCloseRunner();
958958

959959
if (editors.size() == 1) {
960+
storeSketches();
961+
960962
// This will store the sketch count as zero
961963
editors.remove(editor);
962964
try {
963965
Editor.serialMonitor.close();
964966
} catch (Exception e) {
965967
//ignore
966968
}
967-
storeSketches();
968969
rebuildRecentSketchesMenuItems();
969970

970971
// Save out the current prefs state

0 commit comments

Comments
 (0)