Skip to content

Commit

Permalink
feat: show/hide objects on GcodePreview
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas committed Jul 10, 2023
1 parent 661d455 commit a00c1f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/widgets/gcode-preview/GcodePreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
/>
</g>
<g
v-if="!showExcludeObjects && getViewerOption('showParts') && svgPathParts.length > 0"
v-if="getViewerOption('showParts') && !showExcludeObjects && svgPathParts.length > 0"
id="parts"
>
<path
Expand Down Expand Up @@ -209,7 +209,7 @@
/>
</g>
<exclude-objects
v-if="showExcludeObjects"
v-if="getViewerOption('showParts') && showExcludeObjects"
:shape-rendering="shapeRendering"
@cancel="$emit('cancelObject', $event)"
/>
Expand Down Expand Up @@ -391,7 +391,7 @@ export default class GcodePreview extends Mixins(StateMixin, BrowserMixin) {
}
get showExcludeObjects () {
if (!(this.printerPrinting || this.printerPaused)) return false
if (!this.klippyReady || !(this.printerPrinting || this.printerPaused)) return false
const file = this.$store.getters['gcodePreview/getFile']
if (!file) {
Expand Down

0 comments on commit a00c1f7

Please sign in to comment.