From 27148eac8e95c80b505ecbc0b8a3b141da1a05a8 Mon Sep 17 00:00:00 2001 From: Thoronium <107363768+NotThorny@users.noreply.github.com> Date: Sat, 25 Nov 2023 02:08:10 -0700 Subject: [PATCH] Fix wrench loading Fix game missing notification --- src/ui/Main.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 }