mod enabling and disabling

This commit is contained in:
SpikeHD
2022-07-25 20:25:43 -07:00
parent c99080168c
commit 9566beaf29
5 changed files with 107 additions and 12 deletions

View File

@@ -35,7 +35,6 @@ export default class Checkbox extends React.Component<IProps, IState> {
handleChange = () => {
this.setState({ checked: !this.state.checked })
console.log(this.props.onChange)
this.props.onChange()
}

View File

@@ -71,7 +71,7 @@ export default class ProgressBar extends React.Component<IProps, IState> {
></div>
</div>
{this.props.withStats && (
{(this.props.withStats === undefined || this.props.withStats) && (
<div className="MainProgressText">
<Tr text="main.files_downloading" /> {this.state.files} ({this.state.speed})
<br />