Skip to content

Commit

Permalink
fix: clear "follow progress" if not correct file printing (#683)
Browse files Browse the repository at this point in the history
Fixes #659

Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas authored May 18, 2022
1 parent ad8d4ff commit 21892ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/widgets/gcode-preview/GcodePreviewControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ export default class GcodePreviewControls extends Mixins(StateMixin, FilesMixin)
const file = this.$store.getters['gcodePreview/getFile']
const printerFile = this.printerFile
if (!file || !printerFile) {
if (!file || !printerFile || (file.path + '/' + file.filename) !== (printerFile.path + '/' + printerFile.filename)) {
this.$store.commit('gcodePreview/setViewerState', { followProgress: false })
return false
}
return (file.path + '/' + file.filename) === (printerFile.path + '/' + printerFile.filename)
return true
}
get noMoves () {
Expand Down

0 comments on commit 21892ca

Please sign in to comment.