Skip to content

Commit

Permalink
fix(GcodePreview): auto-loading condition
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
  • Loading branch information
pedrolamas committed Feb 23, 2025
1 parent cf8190d commit cec70e1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/widgets/gcode-preview/GcodePreviewCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,8 @@ export default class GcodePreviewCard extends Mixins(StateMixin, FilesMixin, Bro
value != null &&
(
oldValue == null ||
(
value.path !== oldValue.path &&
value.filename !== oldValue.filename
)
value.path !== oldValue.path ||
value.filename !== oldValue.filename
) &&
['paused', 'printing'].includes(this.printerState) &&
!this.printerFileLoaded
Expand Down

0 comments on commit cec70e1

Please # to comment.