mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Only check for conflict with an existing C++ file when renaming the sketch, not when adding a new file.
This commit is contained in:
@ -411,7 +411,7 @@ public class Sketch {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentIndex == 0) {
|
if (renamingCode && currentIndex == 0) {
|
||||||
for (int i = 1; i < codeCount; i++) {
|
for (int i = 1; i < codeCount; i++) {
|
||||||
if (sanitaryName.equalsIgnoreCase(code[i].getPrettyName()) &&
|
if (sanitaryName.equalsIgnoreCase(code[i].getPrettyName()) &&
|
||||||
code[i].getExtension().equalsIgnoreCase("cpp")) {
|
code[i].getExtension().equalsIgnoreCase("cpp")) {
|
||||||
|
Reference in New Issue
Block a user