fix: disable print start dialog for non gcode files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user