Skip to content

Commit

Permalink
Auto redirect more when setting other game
Browse files Browse the repository at this point in the history
  • Loading branch information
NotThorny committed Jun 25, 2023
1 parent 43b2af8 commit 9cf5f7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ui/components/menu/Options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ export default class Options extends React.Component<IProps, IState> {
)
}

// 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,
})
Expand Down

0 comments on commit 9cf5f7a

Please sign in to comment.