From c98c18089ddc9becf4e2e1e3000cf5c6421f1e0f Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Tue, 12 Jan 2016 23:31:45 +0100 Subject: [PATCH] Save window position when closing app from "x" button or Alt+F4 Fix #4404 Fix #4218 --- app/src/processing/app/Base.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 75a720e79..48f39bc03 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -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