diff --git a/src/renderer/components/EvalPlot.vue b/src/renderer/components/EvalPlot.vue index 2d5a47a..1a6857a 100644 --- a/src/renderer/components/EvalPlot.vue +++ b/src/renderer/components/EvalPlot.vue @@ -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() diff --git a/src/renderer/components/EvalPlotButton.vue b/src/renderer/components/EvalPlotButton.vue index 19c6f9f..33940b3 100644 --- a/src/renderer/components/EvalPlotButton.vue +++ b/src/renderer/components/EvalPlotButton.vue @@ -64,7 +64,7 @@ export default { }, stopEval () { this.running = false - document.dispatchEvent(new Event('resetPlot')) + document.dispatchEvent(new Event('stopPlot')) } } }