Update encryption button on jar set

Update README
This commit is contained in:
Thoronium
2023-02-26 14:37:13 -07:00
committed by GitHub
parent 249f07927d
commit 7c53669fc4
2 changed files with 22 additions and 1 deletions

View File

@@ -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) {