mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 16:14:48 +01:00
Some globalisation stuff
Game executable now selectable in settings. Translations need updating for "Set Game Path".
This commit is contained in:
@@ -14,7 +14,8 @@ interface IProps {
|
||||
readonly?: boolean
|
||||
placeholder?: string
|
||||
folder?: boolean
|
||||
customClearBehaviour?: () => void
|
||||
customClearBehaviour?: () => void,
|
||||
openFolder?: string
|
||||
}
|
||||
|
||||
interface IState {
|
||||
@@ -67,10 +68,12 @@ export default class DirInput extends React.Component<IProps, IState> {
|
||||
directory: true
|
||||
})
|
||||
} else {
|
||||
console.log(this.props.openFolder)
|
||||
path = await open({
|
||||
filters: [
|
||||
{ name: 'Files', extensions: this.props.extensions || ['*'] }
|
||||
]
|
||||
],
|
||||
defaultPath: this.props.openFolder
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user