From 7c9b2f7335efae9ab34fcc4e81a0bc2e993350e9 Mon Sep 17 00:00:00 2001 From: Thoronium <107363768+NotThorny@users.noreply.github.com> Date: Sun, 25 Jun 2023 13:30:15 -0600 Subject: [PATCH] Auto redirect more when setting other game --- src/ui/components/menu/Options.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/components/menu/Options.tsx b/src/ui/components/menu/Options.tsx index 5d9c59f..61d342a 100644 --- a/src/ui/components/menu/Options.tsx +++ b/src/ui/components/menu/Options.tsx @@ -150,6 +150,11 @@ export default class Options extends React.Component { ) } + // If setting any other game, automatically set to redirect more + if (!value.toLowerCase().includes('genshin' || 'yuanshen')) { + this.toggleOption('redirect_more') + } + this.setState({ game_install_path: value, })