refactor: add ENABLE=1 to SET_PAUSE_AT_LAYER/NEXT_LAYER (#1293)

This commit is contained in:
Stefan Dej authored and GitHub committed 2023-03-10 18:34:59 +01:00
1 parent a3a71c8f15
commit 1a6969eeea
2 files changed
+3 -3

No files matched your search

@@ -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()
}
+1 -1
View File
@@ -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'),