mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-15 12:29:26 +01:00
Removed leftover dependency from SketchCodeDocument in SketchData.
This commit is contained in:
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));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user