mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03: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:
@ -349,6 +349,10 @@ public class Base {
|
|||||||
int opened = 0;
|
int opened = 0;
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
String path = Preferences.get("last.sketch" + i + ".path");
|
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;
|
int[] location;
|
||||||
if (windowPositionValid) {
|
if (windowPositionValid) {
|
||||||
String locationStr = Preferences.get("last.sketch" + i + ".location");
|
String locationStr = Preferences.get("last.sketch" + i + ".location");
|
||||||
|
Reference in New Issue
Block a user