fix opening and some other stuff

This commit is contained in:
SpikeHD
2022-07-24 20:12:30 -07:00
parent 552d612e7c
commit c42c708db5
3 changed files with 8 additions and 6 deletions

View File

@@ -41,7 +41,8 @@ export class ModTile extends React.Component<IProps, IState> {
onMouseLeave={() => this.setState({ hover: false })}
onClick={() => {
// Disable downloading installed mods
if (!('id' in mod)) return this.openInExplorer()
if (this.props.path) return this.openInExplorer()
if (!('id' in mod)) return
this.props.onClick(mod)
}}