Some globalisation stuff

Game executable now selectable in settings. Translations need updating for "Set Game Path".
This commit is contained in:
Benj
2022-07-09 15:11:19 +08:00
parent 99687f0550
commit f35b596eb2
13 changed files with 26442 additions and 105 deletions

View File

@@ -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
})
}