update gcode to newly updated file
This commit is contained in:
@@ -349,7 +349,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
const file = files[0];
|
||||
|
||||
console.log(file.name);
|
||||
const extension = file.name.split(".").pop();
|
||||
switch (extension.toLowerCase()) {
|
||||
case "nc":
|
||||
|
||||
@@ -91,10 +91,10 @@ module.exports = {
|
||||
},
|
||||
|
||||
reload: function(file) {
|
||||
if (file != this.file) {
|
||||
if (file == this.file) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("reloaded :",file);
|
||||
this.clear();
|
||||
this.load(file);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user