mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
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.
This commit is contained in:
parent
c62f62ff0f
commit
63d3190cbb
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user