mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 15:14:35 +01:00
Auto redirect more when setting other game
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user