mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 08:04:52 +01:00
Fix syntax
This commit is contained in:
@@ -146,13 +146,15 @@ export default class Options extends React.Component<IProps, IState> {
|
||||
setGrasscutterJar(value: string) {
|
||||
setConfigOption('grasscutter_path', value)
|
||||
|
||||
const encEnabled = await server.encryptionEnabled(folderPath + '/config.json')
|
||||
|
||||
this.setState({
|
||||
grasscutter_path: value,
|
||||
})
|
||||
|
||||
// Update encryption button when setting new jar
|
||||
this.setState({
|
||||
encryption: encEnabled,
|
||||
encryption: await translate(encEnabled ? 'options.enabled' : 'options.disabled'),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user