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