mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-16 09:04:45 +01:00
fix textboxes
This commit is contained in:
@@ -53,7 +53,6 @@ export default class TextInput extends React.Component<IProps, IState> {
|
||||
this.props.clearable ?
|
||||
<div className="TextClear" onClick={() => {
|
||||
// Run custom behaviour first
|
||||
console.log('cleared')
|
||||
if (this.props.customClearBehaviour) return this.props.customClearBehaviour()
|
||||
|
||||
this.setState({ value: '' })
|
||||
|
||||
@@ -43,6 +43,9 @@ export default class Options extends React.Component<IProps, IState> {
|
||||
theme: ''
|
||||
}
|
||||
|
||||
this.setGameExec = this.setGameExec.bind(this)
|
||||
this.setGrasscutterJar = this.setGrasscutterJar.bind(this)
|
||||
this.setJavaPath = this.setJavaPath.bind(this)
|
||||
this.toggleGrasscutterWithGame = this.toggleGrasscutterWithGame.bind(this)
|
||||
this.setCustomBackground = this.setCustomBackground.bind(this)
|
||||
}
|
||||
@@ -68,14 +71,26 @@ export default class Options extends React.Component<IProps, IState> {
|
||||
|
||||
setGameExec(value: string) {
|
||||
setConfigOption('game_install_path', value)
|
||||
|
||||
this.setState({
|
||||
game_install_path: value
|
||||
})
|
||||
}
|
||||
|
||||
setGrasscutterJar(value: string) {
|
||||
setConfigOption('grasscutter_path', value)
|
||||
|
||||
this.setState({
|
||||
grasscutter_path: value
|
||||
})
|
||||
}
|
||||
|
||||
setJavaPath(value: string) {
|
||||
setConfigOption('java_path', value)
|
||||
|
||||
this.setState({
|
||||
java_path: value
|
||||
})
|
||||
}
|
||||
|
||||
async setLanguage(value: string) {
|
||||
|
||||
Reference in New Issue
Block a user