diff --git a/src/ui/Main.tsx b/src/ui/Main.tsx index 64ec942..17b5741 100644 --- a/src/ui/Main.tsx +++ b/src/ui/Main.tsx @@ -154,6 +154,10 @@ export class Main extends React.Component { 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 { this.state.optionsOpen ? ( this.setState({ optionsOpen: !this.state.optionsOpen })} + closeFn={async () => { + this.setState({ optionsOpen: !this.state.optionsOpen }) + this.setState({ migotoSet: !!(await getConfigOption('migoto_path')) }) + }} /> ) : null }