mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2026-02-06 10:16:29 +01:00
Fix wrench loading
Fix game missing notification
This commit is contained in:
@@ -154,6 +154,10 @@ export class Main extends React.Component<IProps, IState> {
|
|||||||
game_install_path: game_path,
|
game_install_path: game_path,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (this.state.game_install_path === '') {
|
||||||
|
this.setState({ isGamePathSet: false })
|
||||||
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
migotoSet: !!(await getConfigOption('migoto_path')),
|
migotoSet: !!(await getConfigOption('migoto_path')),
|
||||||
})
|
})
|
||||||
@@ -329,7 +333,10 @@ export class Main extends React.Component<IProps, IState> {
|
|||||||
this.state.optionsOpen ? (
|
this.state.optionsOpen ? (
|
||||||
<Options
|
<Options
|
||||||
downloadManager={this.props.downloadHandler}
|
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
|
) : null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user