mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-16 09:04:45 +01:00
fix opening and some other stuff
This commit is contained in:
@@ -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)
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user