Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3caed63

Browse files
committedJan 12, 2016
Save window position when closing app from "x" button or Alt+F4
Fix #4404 Fix #4218
1 parent 3de3f9a commit 3caed63

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
@@ -956,14 +956,15 @@ public boolean handleClose(Editor editor) {
956956
editor.internalCloseRunner();
957957

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

969970
// Save out the current prefs state

0 commit comments

Comments
 (0)
Please sign in to comment.