From 1a6969eeea2ef4df8b32a1df3b6e5b4369591dcf Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Fri, 10 Mar 2023 18:34:59 +0100 Subject: [PATCH] refactor: add ENABLE=1 to SET_PAUSE_AT_LAYER/NEXT_LAYER (#1293) --- src/components/panels/Status/PauseAtLayerDialog.vue | 4 ++-- src/components/panels/StatusPanel.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/panels/Status/PauseAtLayerDialog.vue b/src/components/panels/Status/PauseAtLayerDialog.vue index c21a4c88..5d28589d 100644 --- a/src/components/panels/Status/PauseAtLayerDialog.vue +++ b/src/components/panels/Status/PauseAtLayerDialog.vue @@ -189,12 +189,12 @@ export default class StatusPanelPauseAtLayerDialog extends Mixins(BaseMixin) { sendCommand() { if (this.type === 'atLayer') { - this.doSend(`SET_PAUSE_AT_LAYER LAYER=${this.layer} MACRO=${this.call}`) + this.doSend(`SET_PAUSE_AT_LAYER ENABLE=1 LAYER=${this.layer} MACRO=${this.call}`) this.hideDialog() return } - this.doSend(`SET_PAUSE_NEXT_LAYER MACRO=${this.call}`) + this.doSend(`SET_PAUSE_NEXT_LAYER ENABLE=1 MACRO=${this.call}`) this.hideDialog() } diff --git a/src/components/panels/StatusPanel.vue b/src/components/panels/StatusPanel.vue index 3ce0ae7d..f2198dfe 100644 --- a/src/components/panels/StatusPanel.vue +++ b/src/components/panels/StatusPanel.vue @@ -244,7 +244,7 @@ export default class StatusPanel extends Mixins(BaseMixin) { return ['paused', 'printing'].includes(this.printer_state) }, - click: this.btnExcludeObject, + click: this.btnPauseAtLayer, }, { text: this.$t('Panels.StatusPanel.ClearPrintStats'),