Skip to content

Commit

Permalink
resetting plot works (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
BododB authored Mar 17, 2021
1 parent 134a1da commit 28017ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/renderer/components/EvalPlot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ export default {
created () {
document.addEventListener('resetPlot', () => {
this.break = true
this.clear()
})
document.addEventListener('stopPlot', () => {
this.break = true
})
document.addEventListener('startEval', () => {
this.evaluateHistory()
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/EvalPlotButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default {
},
stopEval () {
this.running = false
document.dispatchEvent(new Event('resetPlot'))
document.dispatchEvent(new Event('stopPlot'))
}
}
}
Expand Down

0 comments on commit 28017ce

Please sign in to comment.