From 63d3190cbb413011ecc1d017c2c6122097d90132 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 26 Mar 2011 16:23:29 -0400 Subject: [PATCH] Not re-opening .pde sketches left open from a pre-1.0 version of Arduino. That way, we can wait to rename them until the user explicitly opens them in Arduino 1.0. --- app/src/processing/app/Base.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 69255abfd..0e40d52e1 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -349,6 +349,10 @@ public class Base { int opened = 0; for (int i = 0; i < count; i++) { String path = Preferences.get("last.sketch" + i + ".path"); + // don't automatically rename sketches that were left open from a + // pre-1.0 version of Arduino (wait for the user to explicitly open + // the sketch before renaming it). + if (path.toLowerCase().endsWith(".pde")) continue; int[] location; if (windowPositionValid) { String locationStr = Preferences.get("last.sketch" + i + ".location");