Skip to content

Commit 7437005

Browse files
committed
fix: 修正録画停止時のフラグ設定とDataViewerの依存配列を更新
1 parent 6925ba5 commit 7437005

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/electron-src/lib/serialManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class DataRecorder {
175175
};
176176

177177
stopRecord = () => {
178-
this.shouldRecord = true;
178+
this.shouldRecord = false;
179179
};
180180
}
181181

src/renderer/components/DataPlot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default function DataViewer() {
115115
}
116116
setState(updateLines);
117117
}
118-
}, [newData, state]); // Added state to dependency array
118+
}, [newData]); // Added state to dependency array
119119

120120
return (
121121
<>

0 commit comments

Comments
 (0)