mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 07:34:36 +01:00
Small fixes
This commit is contained in:
@@ -41,7 +41,6 @@ interface IState {
|
|||||||
migotoSet: boolean
|
migotoSet: boolean
|
||||||
|
|
||||||
unElevated: boolean
|
unElevated: boolean
|
||||||
launchArgs: string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class ServerLaunchSection extends React.Component<IProps, IState> {
|
export default class ServerLaunchSection extends React.Component<IProps, IState> {
|
||||||
@@ -65,7 +64,6 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
|||||||
akebiSet: false,
|
akebiSet: false,
|
||||||
migotoSet: false,
|
migotoSet: false,
|
||||||
unElevated: false,
|
unElevated: false,
|
||||||
launchArgs: '',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.toggleGrasscutter = this.toggleGrasscutter.bind(this)
|
this.toggleGrasscutter = this.toggleGrasscutter.bind(this)
|
||||||
@@ -97,7 +95,6 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
|||||||
akebiSet: config.akebi_path !== '',
|
akebiSet: config.akebi_path !== '',
|
||||||
migotoSet: config.migoto_path !== '',
|
migotoSet: config.migoto_path !== '',
|
||||||
unElevated: config.un_elevated || false,
|
unElevated: config.un_elevated || false,
|
||||||
launchArgs: config.launch_args || '',
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -706,7 +706,7 @@ export default class Options extends React.Component<IProps, IState> {
|
|||||||
key="launch_args"
|
key="launch_args"
|
||||||
placeholder={'-arg=value'}
|
placeholder={'-arg=value'}
|
||||||
onChange={this.setLaunchArgs}
|
onChange={this.setLaunchArgs}
|
||||||
initalValue={this.state.launch_args}
|
initalValue={this.state?.launch_args}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</Menu>
|
</Menu>
|
||||||
|
|||||||
Reference in New Issue
Block a user