From 37a08a3a37fdfa94dbed2b6966df157a59333064 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Wed, 8 Dec 2021 19:40:52 +0100 Subject: [PATCH] fix: disable print start dialog for non gcode files Signed-off-by: Stefan Dej --- src/components/panels/GcodefilesPanel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/panels/GcodefilesPanel.vue b/src/components/panels/GcodefilesPanel.vue index 7206ca56..62a913e4 100644 --- a/src/components/panels/GcodefilesPanel.vue +++ b/src/components/panels/GcodefilesPanel.vue @@ -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 }