mirror of
https://github.com/euphy/polargraphcontroller
synced 2025-01-09 19:55:16 +01:00
Added .txt as a valid gcode extension
This commit is contained in:
parent
1b0455a886
commit
3b5648085c
@ -1101,7 +1101,7 @@ class VectorFileFilter extends javax.swing.filechooser.FileFilter
|
|||||||
public boolean accept(File file) {
|
public boolean accept(File file) {
|
||||||
String filename = file.getName();
|
String filename = file.getName();
|
||||||
filename.toLowerCase();
|
filename.toLowerCase();
|
||||||
if (file.isDirectory() || filename.endsWith(".svg") || filename.endsWith(".gco") || filename.endsWith(".g"))
|
if (file.isDirectory() || filename.endsWith(".svg") || filename.endsWith(".gco") || filename.endsWith(".g") || filename.endsWith(".txt"))
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
@ -1197,7 +1197,7 @@ RShape loadShapeFromFile(String filename) {
|
|||||||
if (filename.toLowerCase().endsWith(".svg")) {
|
if (filename.toLowerCase().endsWith(".svg")) {
|
||||||
sh = RG.loadShape(filename);
|
sh = RG.loadShape(filename);
|
||||||
}
|
}
|
||||||
else if (filename.toLowerCase().endsWith(".gco") || filename.toLowerCase().endsWith(".g")) {
|
else if (filename.toLowerCase().endsWith(".gco") || filename.toLowerCase().endsWith(".g") || filename.toLowerCase().endsWith(".txt")) {
|
||||||
sh = loadShapeFromGCodeFile(filename);
|
sh = loadShapeFromGCodeFile(filename);
|
||||||
}
|
}
|
||||||
return sh;
|
return sh;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user