dont save empty gcodes
This commit is contained in:
@@ -217,7 +217,9 @@ module.exports = {
|
|||||||
var file_name = this.fileName == "default" ? formattedFilename + ".ngc" : this.fileName;
|
var file_name = this.fileName == "default" ? formattedFilename + ".ngc" : this.fileName;
|
||||||
var file = this.newGcode;
|
var file = this.newGcode;
|
||||||
|
|
||||||
|
if (file.trim() != "") {
|
||||||
this.uploadGCode(file_name, file);
|
this.uploadGCode(file_name, file);
|
||||||
|
}
|
||||||
|
|
||||||
this.config.macros[this.tab - 1].name = macrosName;
|
this.config.macros[this.tab - 1].name = macrosName;
|
||||||
this.config.macros[this.tab - 1].color = macrosColor;
|
this.config.macros[this.tab - 1].color = macrosColor;
|
||||||
|
|||||||
Reference in New Issue
Block a user