Fix wrench loading

Fix game missing notification
This commit is contained in:
Thoronium 2023-11-25 02:08:10 -07:00
parent 7dce15f553
commit 27148eac8e

View File

@ -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
}