mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Removed leftover dependency from SketchCodeDocument in SketchData.
This commit is contained in:
committed by
Cristian Maglie
parent
061d1f14b6
commit
8687a78db5
@ -123,7 +123,7 @@ public class SketchData {
|
|||||||
// Don't allow people to use files with invalid names, since on load,
|
// Don't allow people to use files with invalid names, since on load,
|
||||||
// it would be otherwise possible to sneak in nasty filenames. [0116]
|
// it would be otherwise possible to sneak in nasty filenames. [0116]
|
||||||
if (BaseNoGui.isSanitaryName(base)) {
|
if (BaseNoGui.isSanitaryName(base)) {
|
||||||
addCode(new SketchCodeDocument(new File(folder, filename)));
|
addCode(new SketchCode(new File(folder, filename)));
|
||||||
} else {
|
} else {
|
||||||
System.err.println(I18n.format("File name {0} is invalid: ignored", filename));
|
System.err.println(I18n.format("File name {0} is invalid: ignored", filename));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user