From c14873a8a5871aeb9e69de61131a42425634a88b Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 22 Oct 2023 20:48:02 +0200 Subject: [PATCH] fix: fix filament type check in StartPrintDialog (#1620) --- src/components/dialogs/StartPrintDialogSpoolman.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/dialogs/StartPrintDialogSpoolman.vue b/src/components/dialogs/StartPrintDialogSpoolman.vue index 469415a98..52df30ac5 100644 --- a/src/components/dialogs/StartPrintDialogSpoolman.vue +++ b/src/components/dialogs/StartPrintDialogSpoolman.vue @@ -73,7 +73,9 @@ export default class StartPrintDialogSpoolman extends Mixins(BaseMixin) { return alerts } - const gcodeFilamentType = this.file.filament_type ?? '' + let gcodeFilamentType = this.file.filament_type ?? '' + if (gcodeFilamentType.includes(';')) gcodeFilamentType = gcodeFilamentType.split(';')[0] + if ( gcodeFilamentType !== '' && this.activeSpool?.filament?.material?.toLowerCase() !== gcodeFilamentType.toLowerCase()