path-selector: display path instead of name

This commit is contained in:
Mathias Rasmussen
2018-09-28 17:13:35 +02:00
parent f231c54886
commit f34a79df36
2 changed files with 2 additions and 5 deletions

View File

@@ -18,7 +18,6 @@ class PathSelector extends React.Component {
return {
className: PropTypes.string,
dialog: PropTypes.object,
displayValue: PropTypes.string,
id: PropTypes.string,
onChange: PropTypes.func,
title: PropTypes.string.isRequired,
@@ -67,8 +66,7 @@ class PathSelector extends React.Component {
const textFieldStyle = {
flex: '1'
}
const text = this.props.displayValue || this.props.value || ''
const text = this.props.value || ''
const buttonStyle = {
marginLeft: 10
}

View File

@@ -101,7 +101,6 @@ class PreferencesPage extends React.Component {
title: 'Select media player app',
properties: ['openFile']
}}
displayValue={playerName}
onChange={this.handleExternalPlayerPathChange}
title='External player'
value={playerPath}