dont save empty gcodes

This commit is contained in:
sanjayk03-dev
2024-02-22 04:56:25 +05:30
parent a3d3bff187
commit 1d614a0949

View File

@@ -217,7 +217,9 @@ module.exports = {
var file_name = this.fileName == "default" ? formattedFilename + ".ngc" : this.fileName;
var file = this.newGcode;
if (file.trim() != "") {
this.uploadGCode(file_name, file);
}
this.config.macros[this.tab - 1].name = macrosName;
this.config.macros[this.tab - 1].color = macrosColor;