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