mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-13 14:26:37 +00:00
fix: reset charCount on serial monitor reset
This commit is contained in:
parent
7503739a9f
commit
61262c23ac
@ -71,7 +71,9 @@ export class SerialMonitorOutput extends React.Component<
|
||||
});
|
||||
this.scrollToBottom();
|
||||
}),
|
||||
this.props.clearConsoleEvent(() => this.setState({ lines: [] })),
|
||||
this.props.clearConsoleEvent(() =>
|
||||
this.setState({ lines: [], charCount: 0 })
|
||||
),
|
||||
this.props.monitorModel.onChange(({ property }) => {
|
||||
if (property === 'timestamp') {
|
||||
const { timestamp } = this.props.monitorModel;
|
||||
|
Loading…
x
Reference in New Issue
Block a user