fix: disable print start dialog for non gcode files

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2021-12-08 19:40:52 +01:00
1 parent 6844e6242c
commit 37a08a3a37
1 file changed
+1 -1
+1 -1
View File
@@ -944,7 +944,7 @@ export default class GcodefilesPanel extends Mixins(BaseMixin) {
if (item.isDirectory) {
this.currentPath += '/' + item.filename
} else if (!['error', 'printing', 'paused'].includes(this.printer_state)) {
} else if (!['error', 'printing', 'paused'].includes(this.printer_state) && this.isGcodeFile(item)) {
this.dialogPrintFile.show = true
this.dialogPrintFile.item = item
}