mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 23:24:35 +01:00
Fix empty game install path on Linux
This commit is contained in:
@@ -15,7 +15,6 @@ import BigButton from '../common/BigButton'
|
|||||||
import DownloadHandler from '../../../utils/download'
|
import DownloadHandler from '../../../utils/download'
|
||||||
import * as meta from '../../../utils/rsa'
|
import * as meta from '../../../utils/rsa'
|
||||||
import HelpButton from '../common/HelpButton'
|
import HelpButton from '../common/HelpButton'
|
||||||
import TextInput from '../common/TextInput'
|
|
||||||
import SmallButton from '../common/SmallButton'
|
import SmallButton from '../common/SmallButton'
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
@@ -328,25 +327,14 @@ export default class Options extends React.Component<IProps, IState> {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Menu closeFn={this.props.closeFn} className="Options" heading="Options">
|
<Menu closeFn={this.props.closeFn} className="Options" heading="Options">
|
||||||
{!this.state.platform || this.state.platform === 'windows' ? (
|
<div className="OptionSection" id="menuOptionsContainerGamePath">
|
||||||
<div className="OptionSection" id="menuOptionsContainerGamePath">
|
<div className="OptionLabel" id="menuOptionsLabelGamePath">
|
||||||
<div className="OptionLabel" id="menuOptionsLabelGamePath">
|
<Tr text="options.game_path" />
|
||||||
<Tr text="options.game_path" />
|
|
||||||
</div>
|
|
||||||
<div className="OptionValue" id="menuOptionsDirGamePath">
|
|
||||||
<DirInput onChange={this.setGameExecutable} value={this.state?.game_install_path} extensions={['exe']} />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
) : (
|
<div className="OptionValue" id="menuOptionsDirGamePath">
|
||||||
<div className="OptionSection" id="menuOptionsContainerGameCommand">
|
<DirInput onChange={this.setGameExecutable} value={this.state?.game_install_path} extensions={['exe']} />
|
||||||
<div className="OptionLabel" id="menuOptionsLabelGameCommand">
|
|
||||||
<Tr text="options.game_command" />
|
|
||||||
</div>
|
|
||||||
<div className="OptionValue" id="menuOptionsGameCommand">
|
|
||||||
<TextInput />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
</div>
|
||||||
<div className="OptionSection" id="menuOptionsContainermetaDownload">
|
<div className="OptionSection" id="menuOptionsContainermetaDownload">
|
||||||
<div className="OptionLabel" id="menuOptionsLabelmetaDownload">
|
<div className="OptionLabel" id="menuOptionsLabelmetaDownload">
|
||||||
<Tr text="options.recover_rsa" />
|
<Tr text="options.recover_rsa" />
|
||||||
|
|||||||
Reference in New Issue
Block a user