This commit is contained in:
Feross Aboukhadijeh
2019-08-14 17:09:07 -07:00
parent cf6b46364c
commit 44e2f366ce
2 changed files with 8 additions and 8 deletions

View File

@@ -157,7 +157,7 @@ class PreferencesPage extends React.Component {
properties: ['openDirectory']
}}
displayValue={torrentsFolderPath || ''}
onChange={this.handletorrentsFolderPathChange}
onChange={this.handleTorrentsFolderPathChange}
title='Folder to watch'
value={torrentsFolderPath ? path.dirname(torrentsFolderPath) : null}
/>
@@ -165,7 +165,7 @@ class PreferencesPage extends React.Component {
)
}
handletorrentsFolderPathChange (filePath) {
handleTorrentsFolderPathChange (filePath) {
dispatch('updatePreferences', 'torrentsFolderPath', filePath)
}