Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/panels/Status/PauseAtLayerDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/panels/StatusPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down