mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 08:34:43 +01:00
Update Grasscutter versions
Add auto MongoDB option
This commit is contained in:
@@ -37,6 +37,7 @@ interface IState {
|
||||
use_internal_proxy: boolean
|
||||
wipe_login: boolean
|
||||
horny_mode: boolean
|
||||
auto_mongodb: boolean
|
||||
swag: boolean
|
||||
platform: string
|
||||
|
||||
@@ -66,6 +67,7 @@ export default class Options extends React.Component<IProps, IState> {
|
||||
wipe_login: false,
|
||||
horny_mode: false,
|
||||
swag: false,
|
||||
auto_mongodb: false,
|
||||
platform: '',
|
||||
|
||||
// Swag stuff
|
||||
@@ -113,6 +115,7 @@ export default class Options extends React.Component<IProps, IState> {
|
||||
wipe_login: config.wipe_login || false,
|
||||
horny_mode: config.horny_mode || false,
|
||||
swag: config.swag_mode || false,
|
||||
auto_mongodb: config.auto_mongodb || false,
|
||||
platform,
|
||||
|
||||
// Swag stuff
|
||||
@@ -356,6 +359,18 @@ export default class Options extends React.Component<IProps, IState> {
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="OptionSection" id="menuOptionsContainerAutoMongodb">
|
||||
<div className="OptionLabel" id="menuOptionsLabelAutoMongodb">
|
||||
<Tr text="options.auto_mongodb" />
|
||||
</div>
|
||||
<div className="OptionValue" id="menuOptionsCheckboxAutoMongodb">
|
||||
<Checkbox
|
||||
onChange={() => this.toggleOption('auto_mongodb')}
|
||||
checked={this.state?.auto_mongodb}
|
||||
id="autoMongodb"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Divider />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user