mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-01-08 12:07:45 +08:00
Fix display input
This commit is contained in:
parent
0e2b4a4a54
commit
016d377f30
@ -111,6 +111,8 @@ export default class Options extends React.Component<IProps, IState> {
|
|||||||
this.addMigotoDelay = this.addMigotoDelay.bind(this)
|
this.addMigotoDelay = this.addMigotoDelay.bind(this)
|
||||||
this.toggleUnElevatedGame = this.toggleUnElevatedGame.bind(this)
|
this.toggleUnElevatedGame = this.toggleUnElevatedGame.bind(this)
|
||||||
this.setLaunchArgs = this.setLaunchArgs.bind(this)
|
this.setLaunchArgs = this.setLaunchArgs.bind(this)
|
||||||
|
|
||||||
|
this.forceUpdate()
|
||||||
}
|
}
|
||||||
|
|
||||||
async componentDidMount() {
|
async componentDidMount() {
|
||||||
@ -149,7 +151,7 @@ export default class Options extends React.Component<IProps, IState> {
|
|||||||
platform,
|
platform,
|
||||||
un_elevated: config.un_elevated || false,
|
un_elevated: config.un_elevated || false,
|
||||||
redirect_more: config.redirect_more || false,
|
redirect_more: config.redirect_more || false,
|
||||||
launch_args: config.launch_args || '',
|
launch_args: config.launch_args,
|
||||||
|
|
||||||
// Linux stuff
|
// Linux stuff
|
||||||
grasscutter_elevation: config.grasscutter_elevation || GrasscutterElevation.None,
|
grasscutter_elevation: config.grasscutter_elevation || GrasscutterElevation.None,
|
||||||
@ -706,7 +708,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}
|
value={this.state.launch_args}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</Menu>
|
</Menu>
|
||||||
|
Loading…
Reference in New Issue
Block a user