Skip to content

Commit

Permalink
fix: don't reload printing file if loaded in GCode Previewer
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas committed Dec 7, 2022
1 parent d263733 commit 64a4e8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/widgets/gcode-preview/GcodePreviewCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ export default class GcodePreviewCard extends Mixins(StateMixin, FilesMixin) {
onPrintFileChanged () {
if (this.autoLoadOnPrintStart &&
this.printerFile &&
['paused', 'printing'].includes(this.printerState)) {
['paused', 'printing'].includes(this.printerState) &&
!this.printerFileLoaded) {
this.loadCurrent()
}
}
Expand Down

0 comments on commit 64a4e8a

Please sign in to comment.