mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2024-11-23 03:49:41 +00:00
Fix wrench loading
Fix game missing notification
This commit is contained in:
parent
7dce15f553
commit
27148eac8e
@ -154,6 +154,10 @@ export class Main extends React.Component<IProps, IState> {
|
||||
game_install_path: game_path,
|
||||
})
|
||||
|
||||
if (this.state.game_install_path === '') {
|
||||
this.setState({ isGamePathSet: false })
|
||||
}
|
||||
|
||||
this.setState({
|
||||
migotoSet: !!(await getConfigOption('migoto_path')),
|
||||
})
|
||||
@ -329,7 +333,10 @@ export class Main extends React.Component<IProps, IState> {
|
||||
this.state.optionsOpen ? (
|
||||
<Options
|
||||
downloadManager={this.props.downloadHandler}
|
||||
closeFn={() => this.setState({ optionsOpen: !this.state.optionsOpen })}
|
||||
closeFn={async () => {
|
||||
this.setState({ optionsOpen: !this.state.optionsOpen })
|
||||
this.setState({ migotoSet: !!(await getConfigOption('migoto_path')) })
|
||||
}}
|
||||
/>
|
||||
) : null
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user